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
@ -1585,7 +1585,8 @@ gst_ts_demux_handle_packet (GstTSDemux * demux, TSDemuxStream * stream,
|
|||||||
GST_BUFFER_OFFSET (packet->buffer));
|
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_ts_demux_queue_data (demux, stream, packet);
|
||||||
GST_DEBUG ("current_size:%d, expected_size:%d",
|
GST_DEBUG ("current_size:%d, expected_size:%d",
|
||||||
stream->current_size, stream->expected_size);
|
stream->current_size, stream->expected_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user