[MPlayer-cvslog] r37543 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Tue Oct 6 13:30:10 CEST 2015


Author: ib
Date: Tue Oct  6 13:30:10 2015
New Revision: 37543

Log:
Fix segmentation fault.

For DVD iso images, there is no guiInfo.Filename.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Sun Oct  4 03:44:58 2015	(r37542)
+++ trunk/gui/interface.c	Tue Oct  6 13:30:10 2015	(r37543)
@@ -507,7 +507,7 @@ int gui(int what, void *data)
             force_fps = 0;
         }
 
-        if (gstrcmp(strrchr(guiInfo.Filename, '.'), ".cue") == 0)
+        if (guiInfo.Filename && (gstrcmp(strrchr(guiInfo.Filename, '.'), ".cue") == 0))
             guiInfo.StreamType = STREAMTYPE_BINCUE;
 
         switch (guiInfo.StreamType) {


More information about the MPlayer-cvslog mailing list