Mercurial > mplayer.hg
changeset 13310:c629f7ac9b9f
fix seeking in audio-only case (crash when seeking backwards, time reset to 0)
author | reimar |
---|---|
date | Sat, 11 Sep 2004 09:40:34 +0000 |
parents | 4bb3c84f948e |
children | 8bf56817f2e5 |
files | libmpdemux/demux_asf.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_asf.c Sat Sep 11 09:28:39 2004 +0000 +++ b/libmpdemux/demux_asf.c Sat Sep 11 09:40:34 2004 +0000 @@ -383,12 +383,16 @@ // printf("\r -- asf: newpos=%d -- \n",newpos); stream_seek(demuxer->stream,newpos); + if (d_video->id >= 0) ds_fill_buffer(d_video); if(sh_audio){ ds_fill_buffer(d_audio); resync_audio_stream(sh_audio); } + if (d_video->id < 0) + sh_audio->delay = d_audio->pts; + else while(1){ if(sh_audio && !d_audio->eof){ float a_pts=d_audio->pts;