From dbe080ec9f05cd216f4217c81409a37d3f4db969 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 2 Apr 2008 18:51:38 +0300 Subject: Change VOCTRL_[GET|SET]_EQUALIZER argument passing These were the only voctrl types with more than one argument. The second argument was passed using variable arguments. Change them to use a single argument (address of a struct containing both old arguments). This makes forwarding the arguments to other functions easier and allows simplifying code. --- libvo/vo_xvidix.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'libvo/vo_xvidix.c') diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index 7a455dd695..fdd82d8b5c 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -494,30 +494,6 @@ static int control(uint32_t request, void *data, ...) set_window(0); } return VO_TRUE; - case VOCTRL_SET_EQUALIZER: - { - va_list ap; - int value; - - va_start(ap, data); - value = va_arg(ap, int); - - va_end(ap); - - return vidix_control(request, data, value); - } - case VOCTRL_GET_EQUALIZER: - { - va_list ap; - int *value; - - va_start(ap, data); - value = va_arg(ap, int *); - - va_end(ap); - - return vidix_control(request, data, value); - } case VOCTRL_UPDATE_SCREENINFO: aspect_save_screenres(vo_screenwidth, vo_screenheight); return VO_TRUE; -- cgit v1.2.3