Mercurial > mplayer.hg
diff mplayer.c @ 17553:67c30d47ffd4
1. Include audio_delay as an argument to demux_seek.
2. Modify demux_seek_avi to adjust the audio/video stream positions so
that mplayer/mencoder will instantly be in sync even when -delay is
specified.
Other demuxers could be modified similarly in the future.
author | corey |
---|---|
date | Tue, 07 Feb 2006 20:22:44 +0000 |
parents | 9d99333ce6ab |
children | f580a7755ac5 |
line wrap: on
line diff
--- a/mplayer.c Tue Feb 07 18:17:12 2006 +0000 +++ b/mplayer.c Tue Feb 07 20:22:44 2006 +0000 @@ -4185,7 +4185,7 @@ if(rel_seek_secs || abs_seek_pos){ current_module="seek"; - if(demux_seek(demuxer,rel_seek_secs,abs_seek_pos)){ + if(demux_seek(demuxer,rel_seek_secs,audio_delay,abs_seek_pos)){ // success: /* FIXME there should be real seeking for vobsub */ if(sh_video) sh_video->pts=d_video->pts;