diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-07-28 21:30:09 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-07-28 21:30:09 +0000 |
commit | 60d27c02edd2d552ebfddbda554fb5839cee7e4a (patch) | |
tree | 51710164d0a03e5a522cf4a58821e935f63631e2 /libmpcodecs/vf_vo.c | |
parent | 574cd16de42af689bad4814a1074c851dbef9c7a (diff) | |
download | mpv-60d27c02edd2d552ebfddbda554fb5839cee7e4a.tar.bz2 mpv-60d27c02edd2d552ebfddbda554fb5839cee7e4a.tar.xz |
... removed from vf's control(), sing struct for equalizer. based on patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6833 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_vo.c')
-rw-r--r-- | libmpcodecs/vf_vo.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c index e82b85b668..024894d9c7 100644 --- a/libmpcodecs/vf_vo.c +++ b/libmpcodecs/vf_vo.c @@ -1,7 +1,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdarg.h> #include "../config.h" #include "../mp_msg.h" @@ -47,7 +46,7 @@ static int config(struct vf_instance_s* vf, return 1; } -static int control(struct vf_instance_s* vf, int request, void* data, ...) +static int control(struct vf_instance_s* vf, int request, void* data) { switch(request){ #ifdef USE_OSD @@ -58,25 +57,15 @@ static int control(struct vf_instance_s* vf, int request, void* data, ...) #endif case VFCTRL_SET_EQUALIZER: { - va_list ap; - int value; - + vf_equalizer_t *eq=data; if(!vo_config_count) return CONTROL_FALSE; // vo not configured? - va_start(ap, data); - value = va_arg(ap, int); - va_end(ap); - return((video_out->control(VOCTRL_SET_EQUALIZER, data, (int *)value) == VO_TRUE) ? CONTROL_TRUE : CONTROL_FALSE); + return((video_out->control(VOCTRL_SET_EQUALIZER, eq->item, eq->value) == VO_TRUE) ? CONTROL_TRUE : CONTROL_FALSE); } case VFCTRL_GET_EQUALIZER: { - va_list ap; - int *value; - + vf_equalizer_t *eq=data; if(!vo_config_count) return CONTROL_FALSE; // vo not configured? - va_start(ap, data); - value = va_arg(ap, int); - va_end(ap); - return((video_out->control(VOCTRL_GET_EQUALIZER, data, value) == VO_TRUE) ? CONTROL_TRUE : CONTROL_FALSE); + return((video_out->control(VOCTRL_GET_EQUALIZER, eq->item, &eq->value) == VO_TRUE) ? CONTROL_TRUE : CONTROL_FALSE); } } // return video_out->control(request,data); |