[Mplayer-cvslog] CVS: 0_90/libmpcodecs vf_field.c,1.1,1.2

Arpi of Ize arpi at mplayerhq.hu
Mon Mar 10 17:03:01 CET 2003


Update of /cvsroot/mplayer/0_90/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv20507

Modified Files:
	vf_field.c 
Log Message:
backport: uninit()


Index: vf_field.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/libmpcodecs/vf_field.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- vf_field.c	23 Jan 2003 16:33:57 -0000	1.1
+++ vf_field.c	10 Mar 2003 16:02:59 -0000	1.2
@@ -51,11 +51,15 @@
 
 //===========================================================================//
 
-// FIXME - do we need to free dmpi on uninit?
+static void uninit(struct vf_instance_s* vf)
+{
+	free(vf->priv);
+}
 
 static int open(vf_instance_t *vf, char* args){
     vf->config=config;
     vf->put_image=put_image;
+    vf->uninit=uninit;
     vf->default_reqs=VFCAP_ACCEPT_STRIDE;
     vf->priv=calloc(1, sizeof(struct vf_priv_s));
     if (args) sscanf(args, "%d", &vf->priv->field);



More information about the MPlayer-cvslog mailing list