Use %03u instead of %u in gst_pad_create_stream_id_printf()

This commit is contained in:
David Schleef 2013-03-25 18:05:14 -07:00
parent 2e38f24b56
commit f8bbe696f5
2 changed files with 2 additions and 2 deletions

View file

@ -2376,7 +2376,7 @@ gst_asf_demux_activate_stream (GstASFDemux * demux, AsfStream * stream)
stream_id =
gst_pad_create_stream_id_printf (stream->pad, GST_ELEMENT_CAST (demux),
"%u", stream->id);
"%03u", stream->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);

View file

@ -1496,7 +1496,7 @@ gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream)
stream_id =
gst_pad_create_stream_id_printf (stream->pad,
GST_ELEMENT_CAST (rmdemux), "%u", stream->id);
GST_ELEMENT_CAST (rmdemux), "%03u", stream->id);
gst_pad_push_event (stream->pad, gst_event_new_stream_start (stream_id));
g_free (stream_id);