]> www.infradead.org Git - pidgin-chime.git/commitdiff
Fix FsAppTransmitter for pipelines with more than one element
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 12 Dec 2017 15:54:33 +0000 (15:54 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 31 Jan 2018 20:18:05 +0000 (20:18 +0000)
fs-app-transmitter/fs-app-transmitter.c

index ca2a7bbf599e81cb80fbcbc8b9f372529fe14d40..cca2022c8ef2614253b1d8f95260f5412107895c 100644 (file)
@@ -620,7 +620,7 @@ fs_app_transmitter_get_app_src (FsAppTransmitter *self,
 
   app->path = g_strdup (path);
 
-  elem = gst_parse_launch(path, NULL);
+  elem = gst_parse_bin_from_description(path, TRUE, NULL);
   if (!elem)
   {
     g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
@@ -784,7 +784,7 @@ fs_app_transmitter_get_app_sink (FsAppTransmitter *self,
 
   /* First add the sink */
 
-  elem = gst_parse_launch(path, NULL);
+  elem = gst_parse_bin_from_description(path, TRUE, NULL);
   if (!elem)
   {
     g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
@@ -839,6 +839,8 @@ fs_app_transmitter_get_app_sink (FsAppTransmitter *self,
   {
     g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
         "Could not link recvonly filter and appsink");
+    GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(self->priv->gst_sink), GST_DEBUG_GRAPH_SHOW_ALL, "nolink");
+
     goto error;
   }