mirror of https://github.com/mpv-player/mpv
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:
parent
9388f69f67
commit
cb13d7fadb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue