[MPlayer-cvslog] r38083 - trunk/gui/win32/dialogs.c

ib subversion at mplayerhq.hu
Fri Apr 13 13:17:47 EEST 2018


Author: ib
Date: Fri Apr 13 13:17:47 2018
New Revision: 38083

Log:
Restrict the possibility to load a subtitle in Win32 GUI.

Allow it only if not already playing.

Modified:
   trunk/gui/win32/dialogs.c

Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c	Fri Apr 13 13:12:18 2018	(r38082)
+++ trunk/gui/win32/dialogs.c	Fri Apr 13 13:17:47 2018	(r38083)
@@ -159,7 +159,7 @@ void display_opensubtitlewindow(gui_t *g
     char subtitlefile[MAX_PATH];
 
     /* Safety check */
-    if (guiInfo.Playing == GUI_STOP || !guiInfo.sh_video) return;
+    if (guiInfo.Playing) return;
 
     memset(&subtitleopen, 0, sizeof(OPENFILENAME));
     memset(subtitlefile, 0, sizeof(subtitlefile));


More information about the MPlayer-cvslog mailing list