diff options
author | wm4 <wm4@nowhere> | 2013-11-27 20:54:07 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-27 21:14:39 +0100 |
commit | f09b2ff661040828e2b17fad89613f7706b10e7d (patch) | |
tree | 5c5b54a30cf6bf0e1ffda152be3e2b91b1f2a0e1 /video/decode/vd_lavc.c | |
parent | f2b5267e88ca68dd6933c97aa4f12e5c073b5a48 (diff) | |
download | mpv-f09b2ff661040828e2b17fad89613f7706b10e7d.tar.bz2 mpv-f09b2ff661040828e2b17fad89613f7706b10e7d.tar.xz |
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.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index c13ef68aad..d29bad6d29 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -821,7 +821,7 @@ static int control(struct dec_video *vd, int cmd, void *arg) vd_ffmpeg_ctx *ctx = vd->priv; AVCodecContext *avctx = ctx->avctx; switch (cmd) { - case VDCTRL_RESYNC_STREAM: + case VDCTRL_RESET: avcodec_flush_buffers(avctx); return CONTROL_TRUE; case VDCTRL_QUERY_UNSEEN_FRAMES:; |