[empathy] In the gst 0.10 case, link the volume element to capsfilter



commit 02ff7d33ac6453ea61c2f998710d40044b1539e9
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Mon Sep 3 13:54:06 2012 +0200

    In the gst 0.10 case, link the volume element to capsfilter

 src/empathy-audio-src.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c
index c47b8de..7154b4f 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");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]