[Mplayer-cvslog] CVS: main/libmpcodecs dec_video.c,1.139,1.140

Alex Beregszaszi alex at mplayerhq.hu
Thu Jul 25 12:27:48 CEST 2002


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

Modified Files:
	dec_video.c 
Log Message:
fixed possible 10l bug (vf not initialized yet)

Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_video.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -r1.139 -r1.140
--- dec_video.c	24 Jul 2002 18:14:21 -0000	1.139
+++ dec_video.c	25 Jul 2002 10:27:35 -0000	1.140
@@ -78,8 +78,12 @@
 {
     vf_instance_t* vf=sh_video->vfilter;
     
-    if (vf->control(vf, VFCTRL_SET_EQUALIZER, item, (int *)value) == CONTROL_TRUE)
-	return 1;
+    if (vf)
+    {
+	int ret =  vf->control(vf, VFCTRL_SET_EQUALIZER, item, (int *)value);
+	if (ret == CONTROL_TRUE)
+	    return(1);
+    }
     /* try software control */
     if(mpvdec) return mpvdec->control(sh_video,VDCTRL_SET_EQUALIZER, item, (int *)value);
     return 0;




More information about the MPlayer-cvslog mailing list