Mercurial > mplayer.hg
diff libmpcodecs/dec_video.c @ 6786:b16cb6cbff5a
eq reworked
author | alex |
---|---|
date | Thu, 25 Jul 2002 13:12:23 +0000 |
parents | 12dcd0f85262 |
children | 6ad5d182153c |
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c Thu Jul 25 10:27:35 2002 +0000 +++ b/libmpcodecs/dec_video.c Thu Jul 25 13:12:23 2002 +0000 @@ -77,10 +77,11 @@ int set_video_colors(sh_video_t *sh_video,char *item,int value) { vf_instance_t* vf=sh_video->vfilter; - + + mp_dbg(MSGT_DECVIDEO,MSGL_V,"set video colors %s=%d \n", item, value); if (vf) { - int ret = vf->control(vf, VFCTRL_SET_EQUALIZER, item, (int *)value); + int ret = vf->control(vf, VFCTRL_SET_EQUALIZER, item, (int *)value); if (ret == CONTROL_TRUE) return(1); } @@ -92,9 +93,14 @@ int get_video_colors(sh_video_t *sh_video,char *item,int *value) { vf_instance_t* vf=sh_video->vfilter; - - if (vf->control(vf, VFCTRL_GET_EQUALIZER, item, value) == CONTROL_TRUE) - return 1; + + mp_dbg(MSGT_DECVIDEO,MSGL_V,"get video colors %s \n", item); + if (vf) + { + int ret = vf->control(vf, VFCTRL_GET_EQUALIZER, item, value); + if (ret == CONTROL_TRUE) + return(1); + } /* try software control */ if(mpvdec) return mpvdec->control(sh_video,VDCTRL_GET_EQUALIZER, item, value); return 0;