diff options
author | 2004-04-24 13:15:31 +0000 | |
---|---|---|
committer | 2004-04-24 13:15:31 +0000 | |
commit | a6cf3719226346c7c538a753082704809907650e (patch) | |
tree | 966f709d1f743664db6b6e6209ae0efa66b8ce94 | |
parent | 31d8127a156a01e5f664374543b8f1c38ad15a85 (diff) |
Fail if empty or nonexitant playlist
Patch by adland
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12268 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | parser-mpcmd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/parser-mpcmd.c b/parser-mpcmd.c index 59792d9ec9..21bbb41d01 100644 --- a/parser-mpcmd.c +++ b/parser-mpcmd.c @@ -34,15 +34,15 @@ static int is_entry_option(char *opt, char *param, play_tree_t** ret) { 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; } |