# HG changeset patch # User ib # Date 1393685962 0 # Node ID 8c331bcef48266ebebdcfa2d225b4512282ef31d # Parent f1da7af6fc9b64d7186968b67fdedb85ed065bf9 Get rid of VOCTRL_GUI_NOWINDOW. Change GUI code that determines whether the video window should be visible in principle during playback. diff -r f1da7af6fc9b -r 8c331bcef482 gui/interface.c --- a/gui/interface.c Sat Mar 01 14:48:21 2014 +0000 +++ b/gui/interface.c Sat Mar 01 14:59:22 2014 +0000 @@ -482,15 +482,13 @@ { int i = 0; - guiInfo.VideoWindow = True; + guiInfo.VideoWindow = False; while (video_out_drivers[i++]) { - if (video_out_drivers[i - 1]->control(VOCTRL_GUISUPPORT, NULL) == VO_TRUE) { - if ((video_driver_list && !gstrcmp(video_driver_list[0], video_out_drivers[i - 1]->info->short_name)) && (video_out_drivers[i - 1]->control(VOCTRL_GUI_NOWINDOW, NULL) == VO_TRUE)) { - guiInfo.VideoWindow = False; + if ((video_driver_list && !gstrcmp(video_driver_list[0], video_out_drivers[i - 1]->info->short_name)) && (video_out_drivers[i - 1]->control(VOCTRL_GUISUPPORT, NULL) == VO_TRUE)) { + guiInfo.VideoWindow = True; break; } - } } } diff -r f1da7af6fc9b -r 8c331bcef482 libvo/video_out.h --- a/libvo/video_out.h Sat Mar 01 14:48:21 2014 +0000 +++ b/libvo/video_out.h Sat Mar 01 14:59:22 2014 +0000 @@ -51,7 +51,6 @@ #define VOCTRL_RESET 3 /* true if vo driver can use GUI created windows */ #define VOCTRL_GUISUPPORT 4 -#define VOCTRL_GUI_NOWINDOW 19 /* used to switch to fullscreen */ #define VOCTRL_FULLSCREEN 5 /* signal a device pause */ @@ -71,7 +70,6 @@ /* equalizer controls */ #define VOCTRL_SET_EQUALIZER 17 #define VOCTRL_GET_EQUALIZER 18 -//#define VOCTRL_GUI_NOWINDOW 19 /* Frame duplication */ #define VOCTRL_DUPLICATE_FRAME 20 // ... 21 diff -r f1da7af6fc9b -r 8c331bcef482 libvo/vo_dxr3.c --- a/libvo/vo_dxr3.c Sat Mar 01 14:48:21 2014 +0000 +++ b/libvo/vo_dxr3.c Sat Mar 01 14:59:22 2014 +0000 @@ -182,11 +182,6 @@ switch (request) { case VOCTRL_GUISUPPORT: return dxr3_overlay ? VO_TRUE : VO_FALSE; - case VOCTRL_GUI_NOWINDOW: - if (dxr3_overlay) { - return VO_FALSE; - } - return VO_TRUE; case VOCTRL_SET_SPU_PALETTE: if (ioctl(fd_spu, EM8300_IOCTL_SPU_SETPALETTE, data) < 0) { mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_UnableToLoadNewSPUPalette);