From 5d181f4c6dc20cdc6b847ee4895d7d8ffa991f94 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 14 Jan 2004 10:58:15 +0000 Subject: [PATCH] gst/matroska/matroska-demux.c: Fix for using incremental number on padnames. Original commit message from CVS: 2004-01-14 Ronald Bultje * gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream): Fix for using incremental number on padnames. --- ChangeLog | 5 +++++ gst/matroska/matroska-demux.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index bef180a..713dc78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2004-01-14 Ronald Bultje + * gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream): + Fix for using incremental number on padnames. + +2004-01-14 Ronald Bultje + * ext/divx/gstdivxdec.c: * ext/divx/gstdivxenc.c: Set category to divx4linux instead of divx (too generic). diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 4e6f0e6..da324ba 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -831,7 +831,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux *demux) case GST_MATROSKA_TRACK_TYPE_VIDEO: { GstMatroskaTrackVideoContext *videocontext = (GstMatroskaTrackVideoContext *) context; - padname = g_strdup_printf ("video_%02d", demux->num_v_streams); + padname = g_strdup_printf ("video_%02d", demux->num_v_streams++); templ = gst_element_class_get_pad_template (klass, "video_%02d"); caps = gst_matroska_demux_video_caps (videocontext, context->codec_id, @@ -843,7 +843,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux *demux) case GST_MATROSKA_TRACK_TYPE_AUDIO: { GstMatroskaTrackAudioContext *audiocontext = (GstMatroskaTrackAudioContext *) context; - padname = g_strdup_printf ("audio_%02d", demux->num_a_streams); + padname = g_strdup_printf ("audio_%02d", demux->num_a_streams++); templ = gst_element_class_get_pad_template (klass, "audio_%02d"); caps = gst_matroska_demux_audio_caps (audiocontext, context->codec_id, @@ -855,7 +855,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux *demux) case GST_MATROSKA_TRACK_TYPE_COMPLEX: { GstMatroskaTrackComplexContext *complexcontext = (GstMatroskaTrackComplexContext *) context; - padname = g_strdup_printf ("video_%02d", demux->num_v_streams); + padname = g_strdup_printf ("video_%02d", demux->num_v_streams++); templ = gst_element_class_get_pad_template (klass, "video_%02d"); caps = gst_matroska_demux_complex_caps (complexcontext, context->codec_id, @@ -867,7 +867,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux *demux) case GST_MATROSKA_TRACK_TYPE_SUBTITLE: { GstMatroskaTrackSubtitleContext *subtitlecontext = (GstMatroskaTrackSubtitleContext *) context; - padname = g_strdup_printf ("subtitle_%02d", demux->num_t_streams); + padname = g_strdup_printf ("subtitle_%02d", demux->num_t_streams++); templ = gst_element_class_get_pad_template (klass, "subtitle_%02d"); caps = gst_matroska_demux_subtitle_caps (subtitlecontext, context->codec_id, -- 2.7.4