mirror of https://github.com/mpv-player/mpv
command: dvd: better audio/video recovery on angle switching
Does the same thing as the drop_buffers command. When implementing that command, it turned out that resetting the higher level playback state was more effective for achieving smooth recovery. Untested; I don't even have any DVDs or DVD images with multiple angles.
This commit is contained in:
parent
2d039e691f
commit
a1811211a2
|
@ -967,11 +967,8 @@ static int mp_property_angle(void *ctx, struct m_property *prop,
|
||||||
demux_control(demuxer, DEMUXER_CTRL_RESYNC, NULL);
|
demux_control(demuxer, DEMUXER_CTRL_RESYNC, NULL);
|
||||||
demux_unpause(demuxer);
|
demux_unpause(demuxer);
|
||||||
|
|
||||||
if (mpctx->d_video)
|
reset_audio_state(mpctx);
|
||||||
video_reset_decoding(mpctx->d_video);
|
reset_video_state(mpctx);
|
||||||
|
|
||||||
if (mpctx->d_audio)
|
|
||||||
audio_reset_decoding(mpctx->d_audio);
|
|
||||||
|
|
||||||
return ris == STREAM_OK ? M_PROPERTY_OK : M_PROPERTY_ERROR;
|
return ris == STREAM_OK ? M_PROPERTY_OK : M_PROPERTY_ERROR;
|
||||||
case M_PROPERTY_GET_TYPE: {
|
case M_PROPERTY_GET_TYPE: {
|
||||||
|
|
Loading…
Reference in New Issue