Ticket #37: mplayer-vf_vo-1.patch

File mplayer-vf_vo-1.patch, 845 bytes (added by mplayer-bugs@…, 15 years ago)

Patch that solves the above problem for -vo xv

  • libmpcodecs/vf_vo.c

    RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_vo.c,v
    retrieving revision 1.24
    diff -u -r1.24 vf_vo.c
     
    7070    case VFCTRL_SET_EQUALIZER:
    7171    {
    7272        vf_equalizer_t *eq=data;
    73         if(!vo_config_count) return CONTROL_FALSE; // vo not configured?
    7473        return((video_out->control(VOCTRL_SET_EQUALIZER, eq->item, eq->value) == VO_TRUE) ? CONTROL_TRUE : CONTROL_FALSE);
    7574    }
    7675    case VFCTRL_GET_EQUALIZER:
    7776    {
    7877        vf_equalizer_t *eq=data;
    79         if(!vo_config_count) return CONTROL_FALSE; // vo not configured?
    8078        return((video_out->control(VOCTRL_GET_EQUALIZER, eq->item, &eq->value) == VO_TRUE) ? CONTROL_TRUE : CONTROL_FALSE);
    8179    }
    8280    }