summaryrefslogtreecommitdiffstats
path: root/audio/filter/af_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/filter/af_export.c')
-rw-r--r--audio/filter/af_export.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/audio/filter/af_export.c b/audio/filter/af_export.c
index 6c1ea6459b..c6f745ed50 100644
--- a/audio/filter/af_export.c
+++ b/audio/filter/af_export.c
@@ -161,20 +161,14 @@ static int control(struct af_instance* af, int cmd, void* arg)
sscanf(str + i + 1, "%d", &(s->sz));
- return af->control(af, AF_CONTROL_EXPORT_SZ | AF_CONTROL_SET, &s->sz);
- }
- case AF_CONTROL_EXPORT_SZ | AF_CONTROL_SET:
- s->sz = * (int *) arg;
if((s->sz <= 0) || (s->sz > 2048))
mp_msg(MSGT_AFILTER, MSGL_ERR, "[export] Buffer size must be between"
" 1 and 2048\n" );
return AF_OK;
- case AF_CONTROL_EXPORT_SZ | AF_CONTROL_GET:
- *(int*) arg = s->sz;
- return AF_OK;
}
+ }
return AF_UNKNOWN;
}