From a1811211a29fff3e23f329d735ec72e3ae6dc6a5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 20 Nov 2014 22:45:02 +0100 Subject: [PATCH] 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. --- player/command.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/player/command.c b/player/command.c index d9a0d99745..10a779f638 100644 --- a/player/command.c +++ b/player/command.c @@ -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: {