[MPlayer-dev-eng] [PATCH] DXR3

Nick Kurshev nickols_k at mail.ru
Mon Feb 4 19:48:03 CET 2002


Hello, David!

On 04 Feb 2002 10:04:35 +0100 you wrote:

> Hi,
> I've been playing with DXR3 prebuffering for a long while and have never
> succeeded in getting it to sync with audio after seeking/pausing.
> I finally managed to figure out what the problem was. After a seek you
> have to flush the video buffer so that the buffered frames won't be
> played out (because if they are, you will get a video/audio differance
> as big as the number of frames in the buffer). MPlayer seems to pass
> audio data to the audio device and then send video data to the video
> device now this would be logical in a movie player. The problem is that
> when you use prebuffering on the dxr3 and a seek or pause happens, the
> video buffer is flushed, but this takes a small amount of time, since
> audio has already been written to the audio device audio playback has
> already started while the dxr3 is still flushing it's buffers. When the
> dxr3 starts pushing video frames back into the buffer audio will already
> be out of sync by a fraction. The more you seek the more out of sync you
> will be...
> The attached patch moves the audio section to after the video section in
> mplayer.c, it's a minor modification (as you can see). But with this I
> can use prebuffering on the dxr3, without it I cannot. Please allow this
> patch (I've tested it with xv playback and it does not seem to affect
> sync in any way).
> 
> //David Holm
> 
Could you affect less number of lines?
 


Best regards! Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020204/aa5f9b1c/attachment.pgp>


More information about the MPlayer-dev-eng mailing list