From f9039c22040e1a38a3691bc4d299af427c963255 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 19 Nov 2010 10:23:54 +0200 Subject: [PATCH] padtemplate: allow disablinbg the template name conformance checks --- gst/gstpadtemplate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c index 6a18c51..1e2032b 100644 --- a/gst/gstpadtemplate.c +++ b/gst/gstpadtemplate.c @@ -256,9 +256,10 @@ gst_pad_template_dispose (GObject * object) * 'sink%d' template is automatically selected), so we need to restrict their * naming. */ -static gboolean +static inline gboolean name_is_valid (const gchar * name, GstPadPresence presence) { +#ifndef G_DISABLE_ASSERT const gchar *str; if (presence == GST_PAD_ALWAYS) { @@ -284,7 +285,7 @@ name_is_valid (const gchar * name, GstPadPresence presence) return FALSE; } } - +#endif return TRUE; } -- 2.7.4