summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-11-19 10:23:54 +0200
committerStefan Kost <ensonic@users.sf.net>2010-12-03 09:50:31 +0200
commitf9039c22040e1a38a3691bc4d299af427c963255 (patch)
treea90fce9b0caf6228c6007ddcff921ac98d4ce07a /gst
parent20c173bada88756b70e9cbbfd2032c9afc45dd4d (diff)
padtemplate: allow disablinbg the template name conformance checks
Diffstat (limited to 'gst')
-rw-r--r--gst/gstpadtemplate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c
index 6a18c512b..1e2032b0d 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;
}