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:
Tim-Philipp Müller 2011-01-06 19:21:56 +00:00
parent 757dc90faa
commit cbdff26c10

View file

@ -256,10 +256,9 @@ 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 inline gboolean static 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) {
@ -285,7 +284,7 @@ name_is_valid (const gchar * name, GstPadPresence presence)
return FALSE; return FALSE;
} }
} }
#endif
return TRUE; return TRUE;
} }