summaryrefslogtreecommitdiffstats
path: root/common/playlist.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-19 14:41:06 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commitd33e5972b38c1a8d1ed2c19095a94c70c33881c3 (patch)
tree40b2ff985f51f53505ddd5985df4abe2ba97eced /common/playlist.c
parent562d8e6d3236022a77e49a17948e25e493538f04 (diff)
downloadmpv-d33e5972b38c1a8d1ed2c19095a94c70c33881c3.tar.bz2
mpv-d33e5972b38c1a8d1ed2c19095a94c70c33881c3.tar.xz
demux: get rid of free_demuxer[_and_stream]()
Them being separate is just dumb. Replace them with a single demux_free() function, and free its stream by default. Not freeing the stream is only needed in 1 special case (demux_disc.c), use a special flag to not free the stream in this case.
Diffstat (limited to 'common/playlist.c')
-rw-r--r--common/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/playlist.c b/common/playlist.c
index 5504b185bc..7572e67780 100644
--- a/common/playlist.c
+++ b/common/playlist.c
@@ -297,7 +297,7 @@ struct playlist *playlist_parse_file(const char *file, struct mp_cancel *cancel,
"pass it to the player\ndirectly. Don't use --playlist.\n");
}
}
- free_demuxer_and_stream(d);
+ demux_free(d);
if (ret) {
mp_verbose(log, "Playlist successfully parsed\n");