Use %03u for format in gst_pad_create_stream_id_printf()
authorDavid Schleef <ds@schleef.org>
Tue, 26 Mar 2013 01:02:10 +0000 (18:02 -0700)
committerDavid Schleef <ds@schleef.org>
Tue, 26 Mar 2013 01:57:08 +0000 (18:57 -0700)
gst/avi/gstavidemux.c
gst/isomp4/qtdemux.c
gst/matroska/matroska-demux.c

index 8bc0107..b843e39 100644 (file)
@@ -2359,7 +2359,7 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf)
 
   gst_pad_set_active (pad, TRUE);
   stream_id =
-      gst_pad_create_stream_id_printf (pad, GST_ELEMENT_CAST (avi), "%u",
+      gst_pad_create_stream_id_printf (pad, GST_ELEMENT_CAST (avi), "%03u",
       avi->num_streams);
   gst_pad_push_event (pad, gst_event_new_stream_start (stream_id));
   g_free (stream_id);
index f54014a..30b056c 100644 (file)
@@ -5359,7 +5359,7 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
     GST_DEBUG_OBJECT (qtdemux, "setting caps %" GST_PTR_FORMAT, stream->caps);
     stream_id =
         gst_pad_create_stream_id_printf (stream->pad,
-        GST_ELEMENT_CAST (qtdemux), "%u", stream->track_id);
+        GST_ELEMENT_CAST (qtdemux), "%03u", stream->track_id);
     gst_pad_push_event (stream->pad, gst_event_new_stream_start (stream_id));
     g_free (stream_id);
     gst_pad_set_caps (stream->pad, stream->caps);
index 6beaec1..25b5def 100644 (file)
@@ -1370,7 +1370,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
 
   stream_id =
       gst_pad_create_stream_id_printf (context->pad, GST_ELEMENT_CAST (demux),
-      "%u", context->uid);
+      "%03u", context->uid);
   gst_pad_push_event (context->pad, gst_event_new_stream_start (stream_id));
   g_free (stream_id);
   gst_pad_set_caps (context->pad, context->caps);