timeline-pipeline: fix src pad request template for tee
authorРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 18 Apr 2012 14:34:01 +0000 (18:34 +0400)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 1 May 2012 17:51:10 +0000 (18:51 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=674339

ges/ges-timeline-pipeline.c

index 7be4d4e..4f905b6 100644 (file)
@@ -474,7 +474,7 @@ pad_added_cb (GstElement * timeline, GstPad * pad, GESTimelinePipeline * self)
       goto error;
     }
 
-    tmppad = gst_element_get_request_pad (chain->tee, "src%d");
+    tmppad = gst_element_get_request_pad (chain->tee, "src_%u");
     if (G_UNLIKELY (gst_pad_link_full (tmppad, sinkpad,
                 GST_PAD_LINK_CHECK_NOTHING) != GST_PAD_LINK_OK)) {
       GST_ERROR_OBJECT (self, "Couldn't link track pad to playsink");
@@ -521,7 +521,7 @@ pad_added_cb (GstElement * timeline, GstPad * pad, GESTimelinePipeline * self)
       chain->encodebinpad = sinkpad;
     }
 
-    tmppad = gst_element_get_request_pad (chain->tee, "src%d");
+    tmppad = gst_element_get_request_pad (chain->tee, "src_%u");
     if (G_UNLIKELY (gst_pad_link_full (tmppad,
                 chain->encodebinpad,
                 GST_PAD_LINK_CHECK_NOTHING) != GST_PAD_LINK_OK)) {