From 929dc9a8acfdd7bec86463e9eba753c23f28976a Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 23 Nov 2008 12:01:48 +0000 Subject: [PATCH] cosmetics: Move up uninit() to avoid a forward declaration. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27983 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_screenshot.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/libmpcodecs/vf_screenshot.c b/libmpcodecs/vf_screenshot.c index bff57c0776..9d6b48d5bf 100644 --- a/libmpcodecs/vf_screenshot.c +++ b/libmpcodecs/vf_screenshot.c @@ -258,7 +258,15 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt) return 0; } -static void uninit(vf_instance_t *vf); +static void uninit(vf_instance_t *vf) +{ + av_freep(&vf->priv->avctx); + if(vf->priv->ctx) sws_freeContext(vf->priv->ctx); + if (vf->priv->buffer) free(vf->priv->buffer); + free(vf->priv->outbuffer); + free(vf->priv); +} + // open conflicts with stdio.h at least under MinGW static int screenshot_open(vf_instance_t *vf, char* args) { @@ -286,15 +294,6 @@ static int screenshot_open(vf_instance_t *vf, char* args) return 1; } -static void uninit(vf_instance_t *vf) -{ - av_freep(&vf->priv->avctx); - if(vf->priv->ctx) sws_freeContext(vf->priv->ctx); - if (vf->priv->buffer) free(vf->priv->buffer); - free(vf->priv->outbuffer); - free(vf->priv); -} - const vf_info_t vf_info_screenshot = { "screenshot to file",