[MPlayer-dev-eng] [PATCH] Let vo directx survive screensaver
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Oct 29 10:19:07 CET 2006
Hello,
On Mon, Oct 23, 2006 at 01:05:48PM +0800, Zuxy Meng wrote:
> Currently vo directx will crash with seg fault when a screensaver
> starts, while vo gl, vo gl2, vo sdl work fine. The root cause is that
> when this happens, the last line of flip_page() will set image = NULL.
> This patch enables vo directx to survive a screensaver, a monitor off,
> a standby and a hibernation, either full screen or windowed, active or
> inactive. But there's still one situation that it can't handle: if
> mplayer starts to play a file while the screensaver is running,
> mplayer won't wake the computer up and once the screensaver exits,
> mplayer will have a black window.
Can you test this? It is at least as ugly but more straightforward,
if it works this while-loop should probably be a separate function and
all lock calls replaced by it.
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list