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.
This commit is contained in:
wm4 2014-11-10 10:50:11 +01:00
parent 9388f69f67
commit cb13d7fadb
1 changed files with 1 additions and 0 deletions

View File

@ -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;