mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
element: Fix sanity checks for request pad templates without %
This commit is contained in:
parent
cb3f09a719
commit
b8ea24d466
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ _gst_element_request_pad (GstElement * element, GstPadTemplate * templ,
|
|||
GstPad *pad;
|
||||
|
||||
/* Is this the template name? */
|
||||
if (strstr (name, "%")) {
|
||||
if (strstr (name, "%") || !strchr (templ->name_template, '%')) {
|
||||
g_return_val_if_fail (strcmp (name, templ->name_template) == 0, NULL);
|
||||
} else {
|
||||
const gchar *str, *data;
|
||||
|
|
Loading…
Reference in a new issue