projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb63372
)
audiopanorama: simplify get_unit_size
author
René Stadler
<rene.stadler@collabora.co.uk>
Fri, 28 Oct 2011 19:26:33 +0000
(21:26 +0200)
committer
René Stadler
<rene.stadler@collabora.co.uk>
Fri, 28 Oct 2011 19:26:33 +0000
(21:26 +0200)
gst/audiofx/audiopanorama.c
patch
|
blob
|
history
diff --git
a/gst/audiofx/audiopanorama.c
b/gst/audiofx/audiopanorama.c
index
4c27ad7
..
5875a52
100644
(file)
--- a/
gst/audiofx/audiopanorama.c
+++ b/
gst/audiofx/audiopanorama.c
@@
-302,16
+302,13
@@
gst_audio_panorama_get_unit_size (GstBaseTransform * base, GstCaps * caps,
gsize * size)
{
GstAudioInfo info;
- gint width, channels;
g_assert (size);
if (!gst_audio_info_from_caps (&info, caps))
return FALSE;
- width = GST_AUDIO_INFO_WIDTH (&info);
- channels = GST_AUDIO_INFO_CHANNELS (&info);
- *size = width * channels / 8;
+ *size = GST_AUDIO_INFO_BPF (&info);
return TRUE;
}