summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-15 16:26:02 +0200
committerwm4 <wm4@nowhere>2015-08-15 16:26:02 +0200
commit00b60710cf5a290f1882472d51577f72795a3335 (patch)
tree6692d70bc9fb59bcabb3f82b2a364ec5906d2351
parenta6e33b4290600ed89f241632a6417b9d87485352 (diff)
downloadmpv-00b60710cf5a290f1882472d51577f72795a3335.tar.bz2
mpv-00b60710cf5a290f1882472d51577f72795a3335.tar.xz
player: actually close files on playback end
Regression since commit 75b1d504.
-rw-r--r--player/loadfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index fc4c294fc7..9857d8a1a8 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -90,7 +90,7 @@ static void uninit_demuxer(struct MPContext *mpctx)
timeline_destroy(mpctx->tl);
mpctx->tl = NULL;
- free_demuxer(mpctx->master_demuxer);
+ free_demuxer_and_stream(mpctx->master_demuxer);
mpctx->master_demuxer = NULL;
talloc_free(mpctx->sources);