From f09b2ff661040828e2b17fad89613f7706b10e7d Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 27 Nov 2013 20:54:07 +0100 Subject: cosmetics: rename video/audio reset functions These used the suffix _resync_stream, which is a bit misleading. Nothing gets "resynchronized", they really just reset state. (Some audio decoders actually used to "resync" by reading packets for resuming playback, but that's not the case anymore.) Also move the function in dec_video.c to the top of the file. --- mpvcore/player/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpvcore/player/command.c') diff --git a/mpvcore/player/command.c b/mpvcore/player/command.c index 884a9244b0..bb72ec4d9a 100644 --- a/mpvcore/player/command.c +++ b/mpvcore/player/command.c @@ -624,10 +624,10 @@ static int mp_property_angle(m_option_t *prop, int action, void *arg, angle = demuxer_set_angle(demuxer, *(int *)arg); if (angle >= 0) { if (mpctx->d_video) - video_resync_stream(mpctx->d_video); + video_reset_decoding(mpctx->d_video); if (mpctx->d_audio) - audio_resync_stream(mpctx->d_audio); + audio_reset_decoding(mpctx->d_audio); } return M_PROPERTY_OK; case M_PROPERTY_GET_TYPE: { -- cgit v1.2.3