[MPlayer-cvslog] CVS: main parser-mecmd.c, 1.8, 1.9 parser-mpcmd.c, 1.20, 1.21

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sat Apr 23 22:41:21 CEST 2005


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	parser-mecmd.c parser-mpcmd.c 
Log Message:
Make "mplayer -- --a" play the file --a instead of bailing out with a useless
error message


Index: parser-mecmd.c
===================================================================
RCS file: /cvsroot/mplayer/main/parser-mecmd.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- parser-mecmd.c	19 Jan 2005 18:24:53 -0000	1.8
+++ parser-mecmd.c	23 Apr 2005 20:41:19 -0000	1.9
@@ -67,7 +67,7 @@
     //next:
     opt = argv[i];
     /* check for -- (no more options id.) except --help! */
-    if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) != 'h'))
+    if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) == 0))
       {
 	no_more_opts = 1;
 	if (i+1 >= argc)

Index: parser-mpcmd.c
===================================================================
RCS file: /cvsroot/mplayer/main/parser-mpcmd.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- parser-mpcmd.c	19 Jan 2005 18:24:53 -0000	1.20
+++ parser-mpcmd.c	23 Apr 2005 20:41:19 -0000	1.21
@@ -90,7 +90,7 @@
     //next:
     opt = argv[i];
     /* check for -- (no more options id.) except --help! */
-    if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) != 'h'))
+    if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) == 0))
       {
 	no_more_opts = 1;
 	if (i+1 >= argc)




More information about the MPlayer-cvslog mailing list