mirror of
https://github.com/mpv-player/mpv
synced 2025-01-22 23:53:29 +00:00
Fail if empty or nonexitant playlist
Patch by adland git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12268 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
31d8127a15
commit
a6cf371922
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user