mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Revert "padtemplate: allow disablinbg the template name conformance checks"
This reverts commit f9039c2204
.
We use -DG_DISABLE_ASSERTS for releases and pre-releases, but
don't want to disable pad name checking for releases in general,
I think. Need a better solution here. Fixes pad unit test in
pre-release/release mode.
This commit is contained in:
parent
757dc90faa
commit
cbdff26c10
1 changed files with 2 additions and 3 deletions
|
@ -256,10 +256,9 @@ gst_pad_template_dispose (GObject * object)
|
|||
* 'sink%d' template is automatically selected), so we need to restrict their
|
||||
* naming.
|
||||
*/
|
||||
static inline gboolean
|
||||
static gboolean
|
||||
name_is_valid (const gchar * name, GstPadPresence presence)
|
||||
{
|
||||
#ifndef G_DISABLE_ASSERT
|
||||
const gchar *str;
|
||||
|
||||
if (presence == GST_PAD_ALWAYS) {
|
||||
|
@ -285,7 +284,7 @@ name_is_valid (const gchar * name, GstPadPresence presence)
|
|||
return FALSE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue