[telepathy-stream-engine/master] Allow user-specified audio sinks to be full bins

Olivier Crête olivier.crete at collabora.co.uk
Thu May 14 15:44:08 PDT 2009


---
 src/audiostream.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/audiostream.c b/src/audiostream.c
index 53beb5d..c764be8 100644
--- a/src/audiostream.c
+++ b/src/audiostream.c
@@ -444,13 +444,14 @@ src_pad_added_cb (TfStream *stream, GstPad *pad, FsCodec *codec,
   g_free (padname);
 
   if (g_getenv ("FS_AUDIOSINK"))
-    sink = gst_element_factory_make (g_getenv ("FS_AUDIOSINK"), NULL);
+    sink = gst_parse_bin_from_description (g_getenv ("FS_AUDIOSINK"), TRUE,
+        NULL);
   if (!sink && g_getenv ("FS_AUDIO_SINK"))
-    sink = gst_element_factory_make (g_getenv ("FS_AUDIO_SINK"), NULL);
+    sink = gst_parse_bin_from_description (g_getenv ("FS_AUDIO_SINK"), TRUE,
+        NULL);
   if (!sink)
     sink = gst_element_factory_make ("pulsesink", NULL);
 
-
   if (!gst_bin_add (GST_BIN (self->priv->bin), sink))
     {
       WARNING (self, "could not add sinkbin to the pipeline");
-- 
1.5.6.5




More information about the telepathy-commits mailing list