mirror of https://github.com/mpv-player/mpv
audio/decode: remove vararg from ad_control()
This was unused and dumb. Ancient MPlayer used varargs instead of void* arguments for control() functions, and this was the last leftover.
This commit is contained in:
parent
ad3dfa145b
commit
3097176ff1
|
@ -34,7 +34,7 @@ typedef struct ad_functions
|
|||
int (*preinit)(sh_audio_t *sh);
|
||||
int (*init)(sh_audio_t *sh, const char *decoder);
|
||||
void (*uninit)(sh_audio_t *sh);
|
||||
int (*control)(sh_audio_t *sh,int cmd,void* arg, ...);
|
||||
int (*control)(sh_audio_t *sh, int cmd, void *arg);
|
||||
int (*decode_audio)(sh_audio_t *sh, unsigned char *buffer, int minlen,
|
||||
int maxlen);
|
||||
} ad_functions_t;
|
||||
|
|
|
@ -32,7 +32,7 @@ static void add_decoders(struct mp_decoder_list *list);
|
|||
static int init(sh_audio_t *sh, const char *decoder);
|
||||
static int preinit(sh_audio_t *sh);
|
||||
static void uninit(sh_audio_t *sh);
|
||||
static int control(sh_audio_t *sh,int cmd,void* arg, ...);
|
||||
static int control(sh_audio_t *sh, int cmd, void *arg);
|
||||
static int decode_audio(sh_audio_t *sh,unsigned char *buffer,int minlen,int maxlen);
|
||||
|
||||
#define LIBAD_EXTERN(x) const ad_functions_t mpcodecs_ad_##x = {\
|
||||
|
|
|
@ -310,7 +310,7 @@ static void uninit(sh_audio_t *sh)
|
|||
sh->context = NULL;
|
||||
}
|
||||
|
||||
static int control(sh_audio_t *sh, int cmd, void *arg, ...)
|
||||
static int control(sh_audio_t *sh, int cmd, void *arg)
|
||||
{
|
||||
struct priv *ctx = sh->context;
|
||||
switch (cmd) {
|
||||
|
|
|
@ -455,7 +455,7 @@ static int decode_audio(sh_audio_t *sh, unsigned char *buf, int minlen,
|
|||
return bytes;
|
||||
}
|
||||
|
||||
static int control(sh_audio_t *sh, int cmd, void *arg, ...)
|
||||
static int control(sh_audio_t *sh, int cmd, void *arg)
|
||||
{
|
||||
switch (cmd) {
|
||||
case ADCTRL_RESYNC_STREAM:
|
||||
|
|
|
@ -270,7 +270,7 @@ static int decode_audio(sh_audio_t *sh, unsigned char *buf,
|
|||
return spdif_ctx->out_buffer_len;
|
||||
}
|
||||
|
||||
static int control(sh_audio_t *sh, int cmd, void* arg, ...)
|
||||
static int control(sh_audio_t *sh, int cmd, void *arg)
|
||||
{
|
||||
unsigned char *start;
|
||||
double pts;
|
||||
|
|
Loading…
Reference in New Issue