[MPlayer-dev-eng] [PATCH] reduce flashing on resize with VDPAU
Dan Oscarsson
Dan.Oscarsson at tietoenator.com
Wed Mar 18 08:29:39 CET 2009
On 2009-03-15 at 12:47 +0100 Dan Oscarsson wrote:
I have not received any comments from Reimar on the new patch I sent on
Sunday. It would be nice as I need this type of patch to get mplayer
usable on my TV.
Unless you have a TV where you can run a 23,976Hz movie with the display
running at the same rate, you may not see the problem with the current
code. Mplayer have problems handling the case when fps is nearly equal
to the number of vsyncs per second.
Running current code (as of last Saturday) I can get (looking at status
line when matters have stabilised):
- A-V: out of sync - mplayer fails to sync audio with video
- video decode and display 98%
- audio decode and output: 1 %
Running the code with my patches:
- A-V: in sync
- video decode and display 0%
- audio decode and output: 1%
The problem with current code is that it waits for vsyncs. And when all
time except audio handling is used for video, there is no time to
correct A-V.
My code do not wait for vsyncs, instead it discards a frame if display
has not displayed the previous frame.
Dan
More information about the MPlayer-dev-eng
mailing list