playlist: don't add the base path twice

Loading a playlist with --playlist from a sub-directory added the
playlist's base path twice: one time in the playlist demuxer, and then
again in playlist_parse_file(). The latter function is used only for
--playlist, so it worked when loading the playlist directly.

(This is probably a mess-up when the MPlayer playlist parsers were
replaced with newer code.)

CC: @mpv-player/stable
This commit is contained in:
wm4 2014-09-01 00:10:00 +02:00
parent f59f1e532e
commit 129a7c056a
1 changed files with 0 additions and 3 deletions

View File

@ -286,9 +286,6 @@ struct playlist *playlist_parse_file(const char *file, struct mpv_global *global
if (ret && !ret->first) if (ret && !ret->first)
mp_warn(log, "Warning: empty playlist\n"); mp_warn(log, "Warning: empty playlist\n");
if (ret)
playlist_add_base_path(ret, mp_dirname(file));
talloc_free(log); talloc_free(log);
return ret; return ret;
} }