[PATCH] Avoid remapping of X11 window with -wid and -fixed-vo
Dear all, The attached patch prevents unmapping/mapping of external X11 window when -fixed-vo is specified. The difference is most noticeable using: mplayer -wid <id> -fixed-vo -loop 0 <movies ...> Without the patch, the external X11 window is unmapped then mapped in-between movies, causing a noticable blink. With the patch, a smooth transition is achieved. Regards, Timothy Lee
Hello, On Thu, Jul 19, 2007 at 12:35:55PM +0800, Timothy Lee wrote:
The attached patch prevents unmapping/mapping of external X11 window when -fixed-vo is specified. The difference is most noticeable using:
mplayer -wid <id> -fixed-vo -loop 0 <movies ...>
Without the patch, the external X11 window is unmapped then mapped in-between movies, causing a noticable blink. With the patch, a smooth transition is achieved.
Can someone comment if the unmap/map cycle is at all necessary? Because during window creation XChangeWindowAttributes is called on a mapped window, and I think it didn't create much problems... Greetings, Reimar Döffinger
On Thu, 19 Jul 2007 09:13:55 +0200 Reimar Döffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> wrote:
Can someone comment if the unmap/map cycle is at all necessary? Because during window creation XChangeWindowAttributes is called on a mapped window, and I think it didn't create much problems...
As far as I can tell, no, the unmap/map cycle is unneeded, so it should be no problem to remove it. What i don't fully understand about the patch is why fake_resize is needed. And btw: what does vo_config_count count? Other than that and that the doxygen comments are missing it looks ok. Attila Kinali -- Praised are the Fountains of Shelieth, the silver harp of the waters, But blest in my name forever this stream that stanched my thirst! -- Deed of Morred
Attila Kinali wrote:
Reimar Döffinger wrote:
Can someone comment if the unmap/map cycle is at all necessary? Because during window creation XChangeWindowAttributes is called on a mapped window, and I think it didn't create much problems...
As far as I can tell, no, the unmap/map cycle is unneeded, so it should be no problem to remove it. What i don't fully understand about the patch is why fake_resize is needed.
And btw: what does vo_config_count count?
Other than that and that the doxygen comments are missing it looks ok.
According to libvo.txt, vo_config_count "is set to the number of previous config() call, counted from preinit()", and is used by the patch to determine whether the video system is being initialized for the first time in the case of -fixed-vo. As for fake_resize(), it is used to emulate an X11 ConfigureNotify event, which involves retrieving external window geometry and notifying individual vo's using the VO_EVENT_RESIZE flag. This is necessary because the patch skips calling XChangeWindowAttributes() for vo_config_count > 0. Regards, Timothy
participants (3)
-
Attila Kinali -
Reimar Döffinger -
Timothy Lee