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_unpause(demuxer);
|
||||
|
||||
if (mpctx->d_video)
|
||||
video_reset_decoding(mpctx->d_video);
|
||||
|
||||
if (mpctx->d_audio)
|
||||
audio_reset_decoding(mpctx->d_audio);
|
||||
reset_audio_state(mpctx);
|
||||
reset_video_state(mpctx);
|
||||
|
||||
return ris == STREAM_OK ? M_PROPERTY_OK : M_PROPERTY_ERROR;
|
||||
case M_PROPERTY_GET_TYPE: {
|
||||
|
|
Loading…
Reference in New Issue