From cb13d7fadb0de87dc4618178bd0ee8b4e4910297 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 10 Nov 2014 10:50:11 +0100 Subject: 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. --- player/command.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/command.c') 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; -- cgit v1.2.3