aggregator: Don't restrict sink pad names
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 18 Nov 2016 19:41:54 +0000 (14:41 -0500)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:27 +0000 (15:10 +0000)
Sink pads could have other names than sink_%u

https://bugzilla.gnome.org/show_bug.cgi?id=782920

libs/gst/base/gstaggregator.c

index ce2c94f..28bdde0 100644 (file)
@@ -1603,8 +1603,7 @@ gst_aggregator_default_create_new_pad (GstAggregator * self,
   gint serial = 0;
   gchar *name = NULL;
 
-  if (templ->direction != GST_PAD_SINK ||
-      g_strcmp0 (templ->name_template, "sink_%u") != 0)
+  if (templ->direction != GST_PAD_SINK)
     goto not_sink;
 
   GST_OBJECT_LOCK (self);