mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
Make sure set_explicit_caps() is called before adding pad.
Original commit message from CVS: 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):
This commit is contained in:
parent
86c1959403
commit
aedc3d17b4
2 changed files with 4 additions and 2 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 508678c12ea745e207eb8bb3be12c156e3bb698c
|
||||
Subproject commit 90e64b98d566fd8df793cfc0a9b08b8e5fb356d3
|
|
@ -321,12 +321,14 @@ gst_ffmpegdemux_loop (GstElement *element)
|
|||
|
||||
/* store pad internally */
|
||||
ffmpegdemux->srcpads[pkt.stream_index] = pad;
|
||||
gst_element_add_pad (GST_ELEMENT (ffmpegdemux), pad);
|
||||
|
||||
/* get caps that belongs to this stream */
|
||||
caps = gst_ffmpeg_codecid_to_caps (st->codec.codec_id,
|
||||
&st->codec);
|
||||
gst_pad_set_explicit_caps (pad, caps);
|
||||
|
||||
gst_element_add_pad (GST_ELEMENT (ffmpegdemux), pad);
|
||||
|
||||
/* we continue here, in the next pad-is-usable check,
|
||||
* we'll return nonetheless */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue