matroskademux: make stream-id more readable and order-friendly
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Mon, 22 Feb 2016 12:53:21 +0000 (13:53 +0100)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>
Mon, 22 Feb 2016 15:06:11 +0000 (16:06 +0100)
... as streams are so ordered by id by e.g. decodebin
(and as typically already honoured by other demuxers).

gst/matroska/matroska-demux.c

index be973d0..9670049 100644 (file)
@@ -1295,7 +1295,8 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
 
   stream_id =
       gst_pad_create_stream_id_printf (context->pad, GST_ELEMENT_CAST (demux),
-      "%03" G_GUINT64_FORMAT, context->uid);
+      "%03" G_GUINT64_FORMAT ":%03" G_GUINT64_FORMAT,
+      context->num, context->uid);
   stream_start =
       gst_pad_get_sticky_event (demux->common.sinkpad, GST_EVENT_STREAM_START,
       0);