[MPlayer-cvslog] r37505 - in branches/1.2: . gui/dialog/fileselect.c

ib subversion at mplayerhq.hu
Tue Sep 8 22:57:40 CEST 2015


Author: ib
Date: Tue Sep  8 22:57:39 2015
New Revision: 37505

Log:
Merge r37480 from trunk:

Simplify code.

Modified:
   branches/1.2/   (props changed)
   branches/1.2/gui/dialog/fileselect.c

Modified: branches/1.2/gui/dialog/fileselect.c
==============================================================================
--- branches/1.2/gui/dialog/fileselect.c	Tue Sep  8 13:53:08 2015	(r37504)
+++ branches/1.2/gui/dialog/fileselect.c	Tue Sep  8 22:57:39 2015	(r37505)
@@ -534,12 +534,8 @@ static void fs_Ok_released(GtkButton *bu
         else if (strcmp(fsImageFilterNames[fsLastImageFilterSelected][0], MSGTR_GUI_FilterImageDVD) == 0)
             ev = evPlayDVD;
 
-        if (ev == evPlayDVD) {
-            char *ext = strrchr(fsSelectedFile, '.');
-
-            if (ext && (strcmp(ext, ".ifo") == 0))
-                fsSelectedFile = "";
-        }
+        if (ev == evPlayDVD && gstrcmp(strrchr(fsSelectedFile, '.'), ".ifo") == 0)
+            fsSelectedFile = "";
 
         uiUnsetFile();
         setddup(&guiInfo.ImageFilename, fsSelectedDirectory, fsSelectedFile);


More information about the MPlayer-cvslog mailing list