mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
tsdemux: Don't queue data for streams that don't have a pad
This would result in an error further down, and it also avoids processing for that data which we wouldn't be using anyway.
This commit is contained in:
parent
8a4fd8358d
commit
e75612c3fd
1 changed files with 2 additions and 1 deletions
|
@ -1585,7 +1585,8 @@ gst_ts_demux_handle_packet (GstTSDemux * demux, TSDemuxStream * stream,
|
|||
GST_BUFFER_OFFSET (packet->buffer));
|
||||
}
|
||||
|
||||
if (packet->payload && (res == GST_FLOW_OK || res == GST_FLOW_NOT_LINKED)) {
|
||||
if (packet->payload && (res == GST_FLOW_OK || res == GST_FLOW_NOT_LINKED)
|
||||
&& stream->pad) {
|
||||
gst_ts_demux_queue_data (demux, stream, packet);
|
||||
GST_DEBUG ("current_size:%d, expected_size:%d",
|
||||
stream->current_size, stream->expected_size);
|
||||
|
|
Loading…
Reference in a new issue