From ac55131625d48bccf150efb6af7d1b7049a5818c Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 25 Jul 2002 10:27:35 +0000 Subject: fixed possible 10l bug (vf not initialized yet) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6786 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/dec_video.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c index 6727013553..32302757f9 100644 --- a/libmpcodecs/dec_video.c +++ b/libmpcodecs/dec_video.c @@ -78,8 +78,12 @@ int set_video_colors(sh_video_t *sh_video,char *item,int value) { 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; -- cgit v1.2.3