# HG changeset patch # User reimar # Date 1114288879 0 # Node ID 4fdfe0860cc58a98aecfa4029bc6a45afbc2b0b9 # Parent a8a8a4d69a1c7b340314a9a55e7eba9de86538e8 Make "mplayer -- --a" play the file --a instead of bailing out with a useless error message diff -r a8a8a4d69a1c -r 4fdfe0860cc5 parser-mecmd.c --- a/parser-mecmd.c Fri Apr 22 23:57:43 2005 +0000 +++ b/parser-mecmd.c Sat Apr 23 20:41:19 2005 +0000 @@ -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) diff -r a8a8a4d69a1c -r 4fdfe0860cc5 parser-mpcmd.c --- a/parser-mpcmd.c Fri Apr 22 23:57:43 2005 +0000 +++ b/parser-mpcmd.c Sat Apr 23 20:41:19 2005 +0000 @@ -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)