[MPlayer-dev-eng] [PATCH] 3/5 Make vm a file-scope static variable
Alan Curry
pacman at theworld.com
Thu Apr 20 03:46:44 CEST 2006
When VT switching is implemented, the video mode will have to be
reinitialized every time the movie-playing VT is activated. This patch moves
the vm flag to a static variable so it can be checked by the forthcoming
vtswitch routines.
This one should obviously have no effect on behavior, it's just a little
preparation, done separately to make the main patch smaller.
--- libvo/vo_fbdev.c.orig 2006-04-18 14:29:13.000000000 -0500
+++ libvo/vo_fbdev.c 2006-04-18 14:27:38.000000000 -0500
@@ -576,7 +576,7 @@
static int first_row;
static int last_row;
static uint32_t pixel_format;
-static int fs;
+static int fs, vm;
/*
* Note: this function is completely cut'n'pasted from
@@ -840,10 +840,10 @@
uint32_t d_height, uint32_t flags, char *title,
uint32_t format)
{
- int vm = flags & VOFLAG_MODESWITCHING;
int zoom = flags & VOFLAG_SWSCALE;
int vt_fd;
+ vm = flags & VOFLAG_MODESWITCHING;
fs = flags & VOFLAG_FULLSCREEN;
if(pre_init_err == -2)
More information about the MPlayer-dev-eng
mailing list