mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
mpegdemux: Finish setting up stream before adding pad.
This commit is contained in:
parent
40f7001bef
commit
341a800954
1 changed files with 3 additions and 3 deletions
|
@ -536,6 +536,9 @@ gst_ps_demux_get_stream (GstPsDemux * demux, gint id, gint type)
|
||||||
GST_DEBUG_OBJECT (demux, "adding pad for stream id 0x%02x type 0x%02x", id,
|
GST_DEBUG_OBJECT (demux, "adding pad for stream id 0x%02x type 0x%02x", id,
|
||||||
type);
|
type);
|
||||||
|
|
||||||
|
demux->streams[id] = stream;
|
||||||
|
demux->streams_found[demux->found_count++] = stream;
|
||||||
|
|
||||||
if (demux->need_no_more_pads) {
|
if (demux->need_no_more_pads) {
|
||||||
gst_element_add_pad (GST_ELEMENT (demux), stream->pad);
|
gst_element_add_pad (GST_ELEMENT (demux), stream->pad);
|
||||||
gst_flow_combiner_add_pad (demux->flowcombiner, stream->pad);
|
gst_flow_combiner_add_pad (demux->flowcombiner, stream->pad);
|
||||||
|
@ -547,9 +550,6 @@ gst_ps_demux_get_stream (GstPsDemux * demux, gint id, gint type)
|
||||||
"but already signalled no-more-pads; not adding");
|
"but already signalled no-more-pads; not adding");
|
||||||
gst_object_ref_sink (stream->pad);
|
gst_object_ref_sink (stream->pad);
|
||||||
}
|
}
|
||||||
|
|
||||||
demux->streams[id] = stream;
|
|
||||||
demux->streams_found[demux->found_count++] = stream;
|
|
||||||
}
|
}
|
||||||
return stream;
|
return stream;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue