[totem] backend: Plug the audio convert in the right place
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Plug the audio convert in the right place
- Date: Tue, 6 Nov 2012 17:04:29 +0000 (UTC)
commit fbed584a0b4a01c255dbbbaded884ff659beae96
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 dc727d9..46a0a81 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -6066,17 +6066,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]