[MPlayer-dev-eng] Re: [PATCH] vo_gl - fullscreen problem on config change
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Jun 7 17:27:14 CEST 2006
Hi,
On Mon, Jun 05, 2006 at 05:04:42PM +0200, Tomas Janousek wrote:
> Reimar Döffinger napsal(a):
> >Not exactly sure what you mean. Do you mean that in non-fullscreen the
> >windows position is reset to center? I am not aware of a clean solution
>
> No. I mean, I do something like mplayer -vo gl -fs dvb://CHANNEL and I
> switch to window by pressing 'f'. Then, when the mpeg2 stream switches
> from 4:3 to 16:9 (for example), it fullscreens again.
Have a look at attached patch.
I have some doubts this will behave as desired, but at least it seems
simpler and should work for all vos (though I have not tested it).
Greetings,
Reimar Döffinger
-------------- next part --------------
Index: x11_common.c
===================================================================
--- x11_common.c (revision 18623)
+++ x11_common.c (working copy)
@@ -1437,6 +1437,8 @@
return type;
}
+extern int fullscreen; // to override command line
+
void vo_x11_fullscreen(void)
{
int x, y, w, h;
@@ -1482,6 +1484,7 @@
h = vo_screenheight;
}
}
+ fullscreen = vo_fs;
{
long dummy;
Index: w32_common.c
===================================================================
--- w32_common.c (revision 18623)
+++ w32_common.c (working copy)
@@ -359,8 +359,10 @@
return 1;
}
+extern int fullscreen;
void vo_w32_fullscreen(void) {
vo_fs = !vo_fs;
+ fullscreen = vo_fs;
createRenderingContext();
}
More information about the MPlayer-dev-eng
mailing list