summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-10 10:50:11 +0100
committerwm4 <wm4@nowhere>2014-11-10 10:50:55 +0100
commitcb13d7fadb0de87dc4618178bd0ee8b4e4910297 (patch)
treef2a3a48e9a55acdaa09f377fcca41600877e54e9 /player/command.c
parent9388f69f679f0eabde23271944c8f2f35a94dee7 (diff)
downloadmpv-cb13d7fadb0de87dc4618178bd0ee8b4e4910297.tar.bz2
mpv-cb13d7fadb0de87dc4618178bd0ee8b4e4910297.tar.xz
dvd, bluray: reload demuxer on title changes
Causes the player to reload the demuxer and to relist the found streams. Probably slightly dangerous/broken, because the demuxer thread and possibly even the decoders will keep reading data from the new title before the new demuxer takes over. Fixes #1250.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 1bc8ab78d5..04c0c4d789 100644
--- a/player/command.c
+++ b/player/command.c
@@ -666,6 +666,7 @@ static int mp_property_disc_title(void *ctx, struct m_property *prop,
title = *(int*)arg;
if (demux_stream_control(d, STREAM_CTRL_SET_CURRENT_TITLE, &title) < 0)
return M_PROPERTY_NOT_IMPLEMENTED;
+ mpctx->stop_play = PT_RELOAD_DEMUXER;
return M_PROPERTY_OK;
}
return M_PROPERTY_NOT_IMPLEMENTED;