[MPlayer-dev-eng] Slave commend to af_equalizer?

turbos10 turbos11 at gmail.com
Wed Jun 11 11:43:29 CEST 2008


How to send MP_CMD_VF_CHANGE_RECTANGLE to audio filter from mplayer.c?
I think i must use af_control_any_rev(af_stream_t* s, af_data_t*
data). How to get 's' in mplayer.c ?

This is easy for video filtres:
in mplayer.c
case MP_CMD_VF_CHANGE_RECTANGLE:
set_rectangle(sh_video, cmd->args[0].v.i, cmd->args[1].v.i);

in dec_cideo.c:
int set_rectangle(sh_video_t *sh_video,int param,int value)
{
    vf_instance_t* vf=sh_video->vfilter;
    int data[] = {param, value};

    mp_dbg(MSGT_DECVIDEO,MSGL_V,"set rectangle \n");
    if (vf)
    {
        int ret = vf->control(vf, VFCTRL_CHANGE_RECTANGLE, data);
	if (ret)
	    return(1);
    }
    return 0;
}

but how to do it from audio filtres?



More information about the MPlayer-dev-eng mailing list