From: Sebastian Dröge Date: Wed, 11 Mar 2009 13:11:30 +0000 (+0100) Subject: padtemplate: Allow %u as conversion modifier additional to %d and %s X-Git-Tag: RELEASE-0.10.23~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d307513735822e1793a601ff9117f6eacfbc2bb6;p=platform%2Fupstream%2Fgstreamer.git padtemplate: Allow %u as conversion modifier additional to %d and %s --- diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c index 49acc90..c3add25 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')) {