[Mplayer-cvslog] CVS: main/libmpcodecs vf_scale.c,1.48,1.49

Alex Beregszaszi alex at mplayerhq.hu
Sat Nov 29 20:41:14 CET 2003


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

Modified Files:
	vf_scale.c 
Log Message:
uninit support

Index: vf_scale.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_scale.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- vf_scale.c	3 Nov 2003 12:15:32 -0000	1.48
+++ vf_scale.c	29 Nov 2003 19:40:30 -0000	1.49
@@ -379,6 +379,12 @@
     return 0;	// nomatching in-fmt
 }
 
+static void uninit(struct vf_instance_s *vf){
+    if(vf->priv->ctx) sws_freeContext(vf->priv->ctx);
+    if(vf->priv->palette) free(vf->priv->palette);
+    free(vf->priv);
+}
+
 static int open(vf_instance_t *vf, char* args){
     vf->config=config;
     vf->start_slice=start_slice;
@@ -386,6 +392,7 @@
     vf->put_image=put_image;
     vf->query_format=query_format;
     vf->control= control;
+    vf->uninit=uninit;
     if(!vf->priv) {
     vf->priv=malloc(sizeof(struct vf_priv_s));
     // TODO: parse args ->



More information about the MPlayer-cvslog mailing list