aggregator: Don't restrict sink pad names

Sink pads could have other names than sink_%u

https://bugzilla.gnome.org/show_bug.cgi?id=782920
This commit is contained in:
Olivier Crête 2016-11-18 14:41:54 -05:00
parent 1e84f90bdb
commit 8f0fba54b5

View 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);