From: Wim Taymans Date: Fri, 4 Nov 2011 12:00:36 +0000 (+0100) Subject: uridecodebin: fix template name X-Git-Tag: 1.19.3~511^2~7214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d9ccab8c637c0dcd703a5bef93783c4dfeea2ba;p=platform%2Fupstream%2Fgstreamer.git uridecodebin: fix template name --- diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index ce269f3..f5799a1 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -99,7 +99,7 @@ struct _GstURIDecodeBin GSList *decodebins; GSList *pending_decodebins; GHashTable *streams; - gint numpads; + guint numpads; /* for dynamic sources */ guint src_np_sig_id; /* new-pad signal id */ @@ -137,7 +137,7 @@ struct _GstURIDecodeBinClass void (*drained) (GstElement * element); }; -static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src%d", +static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src_%u", GST_PAD_SRC, GST_PAD_SOMETIMES, GST_STATIC_CAPS_ANY); @@ -1045,7 +1045,7 @@ new_decoded_pad_added_cb (GstElement * element, GstPad * pad, GST_DEBUG_OBJECT (element, "new decoded pad, name: <%s>", GST_PAD_NAME (pad)); GST_URI_DECODE_BIN_LOCK (decoder); - padname = g_strdup_printf ("src%d", decoder->numpads); + padname = g_strdup_printf ("src_%u", decoder->numpads); decoder->numpads++; GST_URI_DECODE_BIN_UNLOCK (decoder);