summaryrefslogtreecommitdiffstats
path: root/stream/tvi_v4l2.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-09 23:22:15 +0100
committerwm4 <wm4@nowhere>2013-11-09 23:32:58 +0100
commit53d38278431987cc7c266e9fe84d481762bea47a (patch)
tree675d6f2ebce175a7442724842d55f68fbe1aaf1b /stream/tvi_v4l2.c
parent0ff863c1797c734dde8c1f99593a01cf5e1c15bc (diff)
downloadmpv-53d38278431987cc7c266e9fe84d481762bea47a.tar.bz2
mpv-53d38278431987cc7c266e9fe84d481762bea47a.tar.xz
Remove sh_audio->samplesize
This member was redundant. sh_audio->sample_format indicates the sample size already. The TV code is a bit strange: the redundant sample size was part of the internal TV interface. Assume it's really redundant and not something else. The PCM decoder ignores the sample size anyway.
Diffstat (limited to 'stream/tvi_v4l2.c')
-rw-r--r--stream/tvi_v4l2.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c
index 5891ac4556..d99370d8dd 100644
--- a/stream/tvi_v4l2.c
+++ b/stream/tvi_v4l2.c
@@ -974,13 +974,6 @@ static int do_control(priv_t *priv, int cmd, void *arg)
mp_msg(MSGT_TV, MSGL_V, "%s: get audio samplerate: %d\n",
info.short_name, *(int *)arg);
return TVI_CONTROL_TRUE;
- case TVI_CONTROL_AUD_GET_SAMPLESIZE:
- init_audio(priv);
- if (!priv->audio_initialized) return TVI_CONTROL_FALSE;
- *(int *)arg = priv->audio_in.bytes_per_sample;
- mp_msg(MSGT_TV, MSGL_V, "%s: get audio samplesize: %d\n",
- info.short_name, *(int *)arg);
- return TVI_CONTROL_TRUE;
case TVI_CONTROL_AUD_GET_CHANNELS:
init_audio(priv);
if (!priv->audio_initialized) return TVI_CONTROL_FALSE;