summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-01 18:36:45 +0200
committerwm4 <wm4@nowhere>2012-09-18 21:04:46 +0200
commit6a5f00b875131b99ce7a771f23d608b3f0866d70 (patch)
tree88568c8d373f69321e7612fc9d46469a33b2a212
parent89a57148934ec7f150a6170ac1313f6f5c636596 (diff)
downloadmpv-6a5f00b875131b99ce7a771f23d608b3f0866d70.tar.bz2
mpv-6a5f00b875131b99ce7a771f23d608b3f0866d70.tar.xz
cleanup: video_out: remove vo_subdevice global variable
This wasn't accessed anymore. This is all what was left of mplayer2 commit c54fae82fd16 ("vo: fix crash if all VO open fallback attempts fail").
-rw-r--r--libvo/video_out.c8
-rw-r--r--libvo/video_out.h2
2 files changed, 2 insertions, 8 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index a958847568..3ae3e319ed 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -64,12 +64,9 @@ int64_t WinID = -1;
int vo_pts=0; // for hw decoding
float vo_fps=0;
-char *vo_subdevice = NULL;
-
int vo_colorkey = 0x0000ff00; // default colorkey is green
// (0xff000000 means that colorkey has been disabled)
-
//
// Externally visible list of all vo drivers
//
@@ -302,7 +299,7 @@ struct vo *init_best_video_out(struct MPOpts *opts,
if (vo_list && vo_list[0])
while (vo_list[0][0]) {
char *name = strdup(vo_list[0]);
- vo_subdevice = strchr(name,':');
+ char *vo_subdevice = strchr(name,':');
if (!strcmp(name, "pgm"))
mp_tmsg(MSGT_CPLAYER, MSGL_ERR, "The pgm video output driver has been replaced by -vo pnm:pgmyuv.\n");
if (!strcmp(name, "md5"))
@@ -334,12 +331,11 @@ struct vo *init_best_video_out(struct MPOpts *opts,
}
}
// now try the rest...
- vo_subdevice = NULL;
for (i = 0; video_out_drivers[i]; i++) {
const struct vo_driver *video_driver = video_out_drivers[i];
*vo = initial_values;
vo->driver = video_driver;
- if (!vo_preinit(vo, vo_subdevice))
+ if (!vo_preinit(vo, NULL))
return vo; // success!
talloc_free_children(vo);
}
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 3e46722dfd..e98dd36a72 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -324,8 +324,6 @@ extern int enable_mouse_movements;
extern int vo_pts;
extern float vo_fps;
-extern char *vo_subdevice;
-
extern int vo_colorkey;
extern int64_t WinID;