tsdemux: Only activate warning for real streams

streams with stream_type 0xff are PCR-only streams, it's normal not
to have a pad for them.
This commit is contained in:
Edward Hervey 2014-12-01 11:47:29 +01:00
parent c89844ec1e
commit 16fc431ada

View file

@ -1495,9 +1495,9 @@ activate_pad_for_stream (GstTSDemux * tsdemux, TSDemuxStream * stream)
GST_DEBUG_OBJECT (stream->pad, "sparse stream, pushing GAP event");
gst_pad_push_event (stream->pad, gst_event_new_gap (0, 0));
}
} else {
} else if (((MpegTSBaseStream *) stream)->stream_type != 0xff) {
GST_WARNING_OBJECT (tsdemux,
"stream %p (pid 0x%04x, type:0x%03x) has no pad", stream,
"stream %p (pid 0x%04x, type:0x%02x) has no pad", stream,
((MpegTSBaseStream *) stream)->pid,
((MpegTSBaseStream *) stream)->stream_type);
}