[MPlayer-dev-eng] [PATCH] fix for crash when switching to fullscreen in gui
Sergey E. Galanov
sgsoftware at mail.ru
Fri Jun 15 13:58:07 CEST 2007
Hi all.
I've got a problem with gmplayer crashing when I switch to fullscreen.
I've done some investigation and found that the cause of the problem is a
call to 'wsSetLayer' on the main window in 'mplFullScreen'.This leads to
the main
window becoming fullscreen as well. But apparently there is no handling
of main
window changing its size, because the drawing buffer ('mplDrawBuffer')
never
gets reallocated and consequently 'Render' corrupts memory which
leads to crash some time later in 'decode_video'.
I don't know why has this bug been for so long. Maybe it is specific to my
window manager (I use ion3) --- I haven't tested it with other WMs.
All I did was commenting that particular line of code out, so that main
window
doesn't get affected by the movie window becoming fullscreen. It seems
to work
fine for me.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gui-crash-on-fullscreen-fix.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070615/9180d23b/attachment.asc>
More information about the MPlayer-dev-eng
mailing list