projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c173b
)
padtemplate: allow disablinbg the template name conformance checks
author
Stefan Kost
<ensonic@users.sf.net>
Fri, 19 Nov 2010 08:23:54 +0000
(10:23 +0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Fri, 3 Dec 2010 07:50:31 +0000
(09:50 +0200)
gst/gstpadtemplate.c
patch
|
blob
|
history
diff --git
a/gst/gstpadtemplate.c
b/gst/gstpadtemplate.c
index
6a18c51
..
1e2032b
100644
(file)
--- 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;
}