mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst/matroska/matroska-demux.c: Fix for using incremental number on padnames.
Original commit message from CVS: 2004-01-14 Ronald Bultje <rbultje@ronald.bitfreak.net> * gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream): Fix for using incremental number on padnames.
This commit is contained in:
parent
00b0cdf8ff
commit
5d181f4c6d
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-01-14 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream):
|
||||||
|
Fix for using incremental number on padnames.
|
||||||
|
|
||||||
2004-01-14 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
2004-01-14 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* ext/divx/gstdivxdec.c:
|
* ext/divx/gstdivxdec.c:
|
||||||
|
|
|
@ -831,7 +831,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux *demux)
|
||||||
case GST_MATROSKA_TRACK_TYPE_VIDEO: {
|
case GST_MATROSKA_TRACK_TYPE_VIDEO: {
|
||||||
GstMatroskaTrackVideoContext *videocontext =
|
GstMatroskaTrackVideoContext *videocontext =
|
||||||
(GstMatroskaTrackVideoContext *) context;
|
(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");
|
templ = gst_element_class_get_pad_template (klass, "video_%02d");
|
||||||
caps = gst_matroska_demux_video_caps (videocontext,
|
caps = gst_matroska_demux_video_caps (videocontext,
|
||||||
context->codec_id,
|
context->codec_id,
|
||||||
|
@ -843,7 +843,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux *demux)
|
||||||
case GST_MATROSKA_TRACK_TYPE_AUDIO: {
|
case GST_MATROSKA_TRACK_TYPE_AUDIO: {
|
||||||
GstMatroskaTrackAudioContext *audiocontext =
|
GstMatroskaTrackAudioContext *audiocontext =
|
||||||
(GstMatroskaTrackAudioContext *) context;
|
(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");
|
templ = gst_element_class_get_pad_template (klass, "audio_%02d");
|
||||||
caps = gst_matroska_demux_audio_caps (audiocontext,
|
caps = gst_matroska_demux_audio_caps (audiocontext,
|
||||||
context->codec_id,
|
context->codec_id,
|
||||||
|
@ -855,7 +855,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux *demux)
|
||||||
case GST_MATROSKA_TRACK_TYPE_COMPLEX: {
|
case GST_MATROSKA_TRACK_TYPE_COMPLEX: {
|
||||||
GstMatroskaTrackComplexContext *complexcontext =
|
GstMatroskaTrackComplexContext *complexcontext =
|
||||||
(GstMatroskaTrackComplexContext *) context;
|
(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");
|
templ = gst_element_class_get_pad_template (klass, "video_%02d");
|
||||||
caps = gst_matroska_demux_complex_caps (complexcontext,
|
caps = gst_matroska_demux_complex_caps (complexcontext,
|
||||||
context->codec_id,
|
context->codec_id,
|
||||||
|
@ -867,7 +867,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux *demux)
|
||||||
case GST_MATROSKA_TRACK_TYPE_SUBTITLE: {
|
case GST_MATROSKA_TRACK_TYPE_SUBTITLE: {
|
||||||
GstMatroskaTrackSubtitleContext *subtitlecontext =
|
GstMatroskaTrackSubtitleContext *subtitlecontext =
|
||||||
(GstMatroskaTrackSubtitleContext *) context;
|
(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");
|
templ = gst_element_class_get_pad_template (klass, "subtitle_%02d");
|
||||||
caps = gst_matroska_demux_subtitle_caps (subtitlecontext,
|
caps = gst_matroska_demux_subtitle_caps (subtitlecontext,
|
||||||
context->codec_id,
|
context->codec_id,
|
||||||
|
|
Loading…
Reference in a new issue