mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
aggregator: Request pad templates which are not request pad
https://bugzilla.gnome.org/show_bug.cgi?id=782920
This commit is contained in:
parent
8f0fba54b5
commit
fbfc427552
1 changed files with 9 additions and 1 deletions
|
@ -1606,6 +1606,9 @@ gst_aggregator_default_create_new_pad (GstAggregator * self,
|
||||||
if (templ->direction != GST_PAD_SINK)
|
if (templ->direction != GST_PAD_SINK)
|
||||||
goto not_sink;
|
goto not_sink;
|
||||||
|
|
||||||
|
if (templ->presence != GST_PAD_REQUEST)
|
||||||
|
goto not_request;
|
||||||
|
|
||||||
GST_OBJECT_LOCK (self);
|
GST_OBJECT_LOCK (self);
|
||||||
if (req_name == NULL || strlen (req_name) < 6
|
if (req_name == NULL || strlen (req_name) < 6
|
||||||
|| !g_str_has_prefix (req_name, "sink_")) {
|
|| !g_str_has_prefix (req_name, "sink_")) {
|
||||||
|
@ -1630,7 +1633,12 @@ gst_aggregator_default_create_new_pad (GstAggregator * self,
|
||||||
/* errors */
|
/* errors */
|
||||||
not_sink:
|
not_sink:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (self, "request new pad that is not a SINK pad\n");
|
GST_WARNING_OBJECT (self, "request new pad that is not a SINK pad");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
not_request:
|
||||||
|
{
|
||||||
|
GST_WARNING_OBJECT (self, "request new pad that is not a REQUEST pad");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue