[totem/gnome-3-6] backend: Plug the audio convert in the right place



commit 2c6db038467a3224a57aa53a1613dfec6b8cc31f
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 6 14:15:46 2012 +0100

    backend: Plug the audio convert in the right place
    
    caps_filter ! scaletempo ! convert ! sink
    not:
    convert ! caps_filter ! scaletempo ! sink
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687483

 src/backend/bacon-video-widget.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index e36b845..376eef8 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -6062,17 +6062,17 @@ bacon_video_widget_initable_init (GInitable     *initable,
   bvw->priv->audio_capsfilter =
     gst_element_factory_make ("capsfilter", "audiofilter");
   audio_bin = gst_bin_new ("audiosinkbin");
-  gst_bin_add_many (GST_BIN (audio_bin), audio_converter,
+  gst_bin_add_many (GST_BIN (audio_bin),
                     bvw->priv->audio_capsfilter,
-                    bvw->priv->audio_pitchcontrol, audio_sink, NULL);
-  gst_element_link_pads (audio_converter, "src",
-                         bvw->priv->audio_capsfilter, "sink");
-  gst_element_link_pads (bvw->priv->audio_capsfilter, "src",
-                         bvw->priv->audio_pitchcontrol, "sink");
-  gst_element_link_pads (bvw->priv->audio_pitchcontrol, "src",
-                         audio_sink, "sink");
-
-  audio_pad = gst_element_get_static_pad (audio_converter, "sink");
+                    bvw->priv->audio_pitchcontrol,
+		   audio_converter, audio_sink, NULL);
+  gst_element_link_many (bvw->priv->audio_capsfilter,
+			 bvw->priv->audio_pitchcontrol,
+			 audio_converter,
+			 audio_sink,
+			 NULL);
+
+  audio_pad = gst_element_get_static_pad (bvw->priv->audio_capsfilter, "sink");
   gst_element_add_pad (audio_bin, gst_ghost_pad_new ("sink", audio_pad));
   gst_object_unref (audio_pad);
 



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