[Mplayer-cvslog] CVS: main parser-mpcmd.c,1.14,1.15

Roberto Togni CVS syncmail at mplayerhq.hu
Sat Apr 24 15:15:33 CEST 2004


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv20234

Modified Files:
	parser-mpcmd.c 
Log Message:
Fail if empty or nonexitant playlist
Patch by adland


Index: parser-mpcmd.c
===================================================================
RCS file: /cvsroot/mplayer/main/parser-mpcmd.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- parser-mpcmd.c	13 Aug 2003 16:44:39 -0000	1.14
+++ parser-mpcmd.c	24 Apr 2004 13:15:31 -0000	1.15
@@ -34,15 +34,15 @@
   if(strcasecmp(opt,"playlist") == 0) { // We handle playlist here
     if(!param)
       return M_OPT_MISSING_PARAM;
+
     entry = parse_playlist_file(param);
     if(!entry)
-      return 1;
+      return -1;
+    else {
+       *ret=entry;
+       return 1;
+    }
   }
-
-  if(entry) {
-    *ret = entry;
-    return 1;
-  } else
     return 0;
 }
 




More information about the MPlayer-cvslog mailing list