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. --- audio/decode/ad_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/decode/ad_lavc.c') diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c index 45e06c8b3d..4093fa77bd 100644 --- a/audio/decode/ad_lavc.c +++ b/audio/decode/ad_lavc.c @@ -301,7 +301,7 @@ static int control(struct dec_audio *da, int cmd, void *arg) { struct priv *ctx = da->priv; switch (cmd) { - case ADCTRL_RESYNC_STREAM: + case ADCTRL_RESET: avcodec_flush_buffers(ctx->avctx); ctx->frame.samples = 0; talloc_free(ctx->packet); -- cgit v1.2.3