+2004-02-04 David Schleef <ds@schleef.org>
+
+ Make sure set_explicit_caps() is called before adding pad.
+ * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_loop):
+ * gst/id3/gstid3types.c: (gst_id3types_loop):
+ * gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_parse_syshead):
+ * gst/realmedia/rmdemux.c: (gst_rmdemux_add_stream):
+
2004-02-04 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
gst_pad_set_query_function (*outpad, gst_mpeg_parse_handle_src_query);
if (caps && gst_caps_is_fixed (caps))
gst_pad_use_explicit_caps (*outpad);
- gst_element_add_pad (GST_ELEMENT (mpeg_demux), (*outpad));
if (caps && gst_caps_is_fixed (caps))
gst_pad_set_explicit_caps (*outpad, caps);
else if (caps)
gst_caps_free (caps);
+ gst_element_add_pad (GST_ELEMENT (mpeg_demux), (*outpad));
+
gst_pad_set_element_private (*outpad, *outstream);
(*outstream)->size_bound = buf_byte_size_bound;
if(stream->pad){
gst_pad_use_explicit_caps (stream->pad);
- g_print("adding pad %p to rmdemux %p\n", stream->pad, rmdemux);
- gst_element_add_pad(GST_ELEMENT (rmdemux), stream->pad);
-
GST_DEBUG ("setting caps: " GST_PTR_FORMAT, stream->caps);
gst_pad_set_explicit_caps(stream->pad, stream->caps);
+
+ GST_DEBUG ("adding pad %p to rmdemux %p", stream->pad, rmdemux);
+ gst_element_add_pad(GST_ELEMENT (rmdemux), stream->pad);
}
}