[MPlayer-cvslog] r38076 - trunk/gui/dialog/fileselect.c

ib subversion at mplayerhq.hu
Fri Apr 13 12:02:51 EEST 2018


Author: ib
Date: Fri Apr 13 12:02:51 2018
New Revision: 38076

Log:
Call mplayerLoadSubtitle() after destruction of the file selector window.

In case of an error, it allows X to redraw the parts of the windows
previously covered by the file selector prior to displaying the error
message box.

Modified:
   trunk/gui/dialog/fileselect.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Fri Apr 13 11:46:49 2018	(r38075)
+++ trunk/gui/dialog/fileselect.c	Fri Apr 13 12:02:51 2018	(r38076)
@@ -503,7 +503,6 @@ static void fs_Ok_released(GtkButton *bu
 
     case FILESELECT_SUBTITLE:
         setddup(&guiInfo.SubtitleFilename, fsSelectedDirectory, fsSelectedFile);
-        mplayerLoadSubtitle(guiInfo.SubtitleFilename);
         break;
 
     case FILESELECT_AUDIO:
@@ -550,6 +549,9 @@ static void fs_Ok_released(GtkButton *bu
         uiEvent(ev, 0);
     } else
         gui(GUI_SET_STATE, (void *)GUI_STOP);
+
+    if (fsType == FILESELECT_SUBTITLE)
+        mplayerLoadSubtitle(guiInfo.SubtitleFilename);
 }
 
 /**


More information about the MPlayer-cvslog mailing list