[MPlayer-cvslog] r27983 - trunk/libmpcodecs/vf_screenshot.c

diego subversion at mplayerhq.hu
Sun Nov 23 13:01:48 CET 2008


Author: diego
Date: Sun Nov 23 13:01:48 2008
New Revision: 27983

Log:
cosmetics: Move up uninit() to avoid a forward declaration.


Modified:
   trunk/libmpcodecs/vf_screenshot.c

Modified: trunk/libmpcodecs/vf_screenshot.c
==============================================================================
--- trunk/libmpcodecs/vf_screenshot.c	(original)
+++ trunk/libmpcodecs/vf_screenshot.c	Sun Nov 23 13:01:48 2008
@@ -258,7 +258,15 @@ static int query_format(struct vf_instan
     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
     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",



More information about the MPlayer-cvslog mailing list