diff options
author | wm4 <wm4@nowhere> | 2014-11-20 22:45:02 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-20 22:45:02 +0100 |
commit | a1811211a29fff3e23f329d735ec72e3ae6dc6a5 (patch) | |
tree | ba2a1ca385386427c80d5440e21c9f8955a54888 /player | |
parent | 2d039e691f4f8f7b340a113fc9f69fa5bfa6193a (diff) | |
download | mpv-a1811211a29fff3e23f329d735ec72e3ae6dc6a5.tar.bz2 mpv-a1811211a29fff3e23f329d735ec72e3ae6dc6a5.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 7 |
1 files 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: { |