aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2012-09-03 19:54:06 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-03 20:10:22 +0800
commit02ff7d33ac6453ea61c2f998710d40044b1539e9 (patch)
treefba354ac1df1b0fae62b09f72a38c483ef5d260d
parentc40cc8f6d6510b66f774c70097e0d19ee933f783 (diff)
downloadgsoc2013-empathy-02ff7d33ac6453ea61c2f998710d40044b1539e9.tar
gsoc2013-empathy-02ff7d33ac6453ea61c2f998710d40044b1539e9.tar.gz
gsoc2013-empathy-02ff7d33ac6453ea61c2f998710d40044b1539e9.tar.bz2
gsoc2013-empathy-02ff7d33ac6453ea61c2f998710d40044b1539e9.tar.lz
gsoc2013-empathy-02ff7d33ac6453ea61c2f998710d40044b1539e9.tar.xz
gsoc2013-empathy-02ff7d33ac6453ea61c2f998710d40044b1539e9.tar.zst
gsoc2013-empathy-02ff7d33ac6453ea61c2f998710d40044b1539e9.zip
In the gst 0.10 case, link the volume element to capsfilter
-rw-r--r--src/empathy-audio-src.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c
index c47b8dea7..7154b4fb8 100644
--- a/src/empathy-audio-src.c
+++ b/src/empathy-audio-src.c
@@ -307,6 +307,9 @@ empathy_audio_src_init (EmpathyGstAudioSrc *obj)
gst_bin_add (GST_BIN (obj), priv->src);
+ priv->volume_element = gst_element_factory_make ("volume", NULL);
+ gst_bin_add (GST_BIN (obj), priv->volume_element);
+
#ifndef HAVE_GST1
{
GstElement *capsfilter;
@@ -327,12 +330,11 @@ empathy_audio_src_init (EmpathyGstAudioSrc *obj)
g_object_set (G_OBJECT (capsfilter), "caps", caps, NULL);
gst_bin_add (GST_BIN (obj), capsfilter);
gst_element_link (priv->src, capsfilter);
+ gst_element_link (capsfilter, priv->volume_element);
}
-#endif
-
- priv->volume_element = gst_element_factory_make ("volume", NULL);
- gst_bin_add (GST_BIN (obj), priv->volume_element);
+#else
gst_element_link (priv->src, priv->volume_element);
+#endif
src = gst_element_get_static_pad (priv->volume_element, "src");