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:
wm4 2014-11-20 22:45:02 +01:00
parent 2d039e691f
commit a1811211a2
1 changed files with 2 additions and 5 deletions

View File

@ -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: {