changeset 27949:88d793e52bd9

cosmetics: Move up uninit() to avoid a forward declaration.
author diego
date Sun, 23 Nov 2008 12:01:48 +0000
parents 6e485d467cfe
children 31837cfbb63c
files libmpcodecs/vf_screenshot.c
diffstat 1 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_screenshot.c	Sun Nov 23 11:59:37 2008 +0000
+++ b/libmpcodecs/vf_screenshot.c	Sun Nov 23 12:01:48 2008 +0000
@@ -258,7 +258,15 @@
     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 @@
     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",