Mercurial > mplayer.hg
changeset 15245:4fdfe0860cc5
Make "mplayer -- --a" play the file --a instead of bailing out with a useless
error message
author | reimar |
---|---|
date | Sat, 23 Apr 2005 20:41:19 +0000 |
parents | a8a8a4d69a1c |
children | 849a6f39964f |
files | parser-mecmd.c parser-mpcmd.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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)