summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-25 11:16:18 +0900
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-25 11:16:18 +0900
commit423d47130a88964a834483d165009ac5e71f0f6e (patch)
tree91d7c7aaa6fd73fe4d40ad165797a2b01ddd0d2e
parent7a02593dc40ba56dc2b75d1f03a7e4a2387f4621 (diff)
downloadmpv-423d47130a88964a834483d165009ac5e71f0f6e.tar.bz2
mpv-423d47130a88964a834483d165009ac5e71f0f6e.tar.xz
Fix compilation
Broken by unchecked cherry-picking of 53867aa.
-rw-r--r--player/loadfile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index b4cc289360..9adf1fec87 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -650,8 +650,11 @@ bool mp_remove_track(struct MPContext *mpctx, struct track *track)
for (int n = mpctx->num_tracks - 1; n >= 0 && !in_use; n--)
in_use |= mpctx->tracks[n]->demuxer == d;
- if (!in_use)
- free_demuxer_and_stream(d);
+ if (!in_use) {
+ struct stream *s = d->stream;
+ free_demuxer(d);
+ free_stream(s);
+ }
mp_notify(mpctx, MPV_EVENT_TRACKS_CHANGED, NULL);