mpegtsdemux: only warn when we see a PID with unknown type
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 19 Dec 2011 13:18:51 +0000 (13:18 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 19 Dec 2011 13:18:51 +0000 (13:18 +0000)
This is quite frequent, and we will just ignore that stream,
so an error is not warranted.

gst/mpegdemux/gstmpegtsdemux.c

index 8f6d3a4..5ee8dae 100644 (file)
@@ -1128,7 +1128,7 @@ gst_mpegts_demux_add_all_streams (GstMpegTSDemux * demux, GstClockTime pts)
     }
     if (!gst_mpegts_demux_fill_stream (stream, stream->filter.id,
             stream->stream_type)) {
-      GST_ERROR ("Unknown type for PID 0x%04x", stream->PID);
+      GST_WARNING_OBJECT (demux, "Unknown type for PID 0x%04x", stream->PID);
       /* ignore */
       continue;
     }