mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
padtemplate: allow disablinbg the template name conformance checks
This commit is contained in:
parent
20c173bada
commit
f9039c2204
1 changed files with 3 additions and 2 deletions
|
@ -256,9 +256,10 @@ gst_pad_template_dispose (GObject * object)
|
||||||
* 'sink%d' template is automatically selected), so we need to restrict their
|
* 'sink%d' template is automatically selected), so we need to restrict their
|
||||||
* naming.
|
* naming.
|
||||||
*/
|
*/
|
||||||
static gboolean
|
static inline gboolean
|
||||||
name_is_valid (const gchar * name, GstPadPresence presence)
|
name_is_valid (const gchar * name, GstPadPresence presence)
|
||||||
{
|
{
|
||||||
|
#ifndef G_DISABLE_ASSERT
|
||||||
const gchar *str;
|
const gchar *str;
|
||||||
|
|
||||||
if (presence == GST_PAD_ALWAYS) {
|
if (presence == GST_PAD_ALWAYS) {
|
||||||
|
@ -284,7 +285,7 @@ name_is_valid (const gchar * name, GstPadPresence presence)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue