diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-03-11 14:11:30 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-03-11 14:11:30 +0100 |
commit | d307513735822e1793a601ff9117f6eacfbc2bb6 (patch) | |
tree | c7d69d9926e367b9a231f6322d6023aa7045e307 | |
parent | c1a75a0b45fcc54a2b194e0e21629dcfce107599 (diff) |
padtemplate: Allow %u as conversion modifier additional to %d and %s
-rw-r--r-- | gst/gstpadtemplate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c index 49acc9000e..c3add25177 100644 --- a/gst/gstpadtemplate.c +++ b/gst/gstpadtemplate.c @@ -296,9 +296,9 @@ name_is_valid (const gchar * name, GstPadPresence presence) " allowed in GST_PAD_REQUEST padtemplate", name); return FALSE; } - if (str && (*(str + 1) != 's' && *(str + 1) != 'd')) { + if (str && (*(str + 1) != 's' && *(str + 1) != 'd' && *(str + 1) != 'u')) { g_warning ("invalid name template %s: conversion specification must be of" - " type '%%d' or '%%s' for GST_PAD_REQUEST padtemplate", name); + " type '%%d', '%%u' or '%%s' for GST_PAD_REQUEST padtemplate", name); return FALSE; } if (str && (*(str + 2) != '\0')) { |