[Mplayer-cvslog] CVS: main/libmpcodecs ve_nuv.c,1.1,1.2

Alban Bedel CVS albeu at mplayerhq.hu
Tue Mar 4 14:26:32 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv3057/libmpcodecs

Modified Files:
	ve_nuv.c 
Log Message:
Add missing uninit


Index: ve_nuv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_nuv.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ve_nuv.c	3 Mar 2003 11:03:19 -0000	1.1
+++ ve_nuv.c	4 Mar 2003 13:26:09 -0000	1.2
@@ -176,6 +176,17 @@
   return 1;
 }
 
+static void uninit(struct vf_instance_s* vf) {
+
+  if(vf->priv->buffer)
+    free(vf->priv->buffer);
+  if(vf->priv->zbuffer)
+    free(vf->priv->zbuffer);
+  if(vf->priv->zmem)
+    free(vf->priv->zmem);
+
+}
+
 //===========================================================================//
 
 static int vf_open(vf_instance_t *vf, char* args){
@@ -183,9 +194,9 @@
   vf->control=control;
   vf->query_format=query_format;
   vf->put_image=put_image;
+  vf->uninit = uninit;
   vf->priv=malloc(sizeof(struct vf_priv_s));
   memcpy(vf->priv, &nuv_priv_dflt,sizeof(struct vf_priv_s));
-  //memset(vf->priv,0,sizeof(struct vf_priv_s));
   vf->priv->mux=(muxer_stream_t*)args;
   
   mux_v->bih=malloc(sizeof(BITMAPINFOHEADER));



More information about the MPlayer-cvslog mailing list