mpegtsbase: Only warn for added streams when needed

We use add_stream(stream_type:-1) to ensure a programs' PCR Stream is
also taken into account. For most programs this will re-use an
existing ES stream.

So only warn that we are re-adding a stream if it was already present
AND it is not to ensure the PCR stream is taken into account.
This commit is contained in:
Edward Hervey 2013-06-24 08:24:58 +02:00
parent f9b3b46ab5
commit 26689fc437

View file

@ -524,7 +524,8 @@ mpegts_base_program_add_stream (MpegTSBase * base,
pid, stream_type, stream_info);
if (G_UNLIKELY (program->streams[pid])) {
GST_WARNING ("Stream already present !");
if (stream_type != 0xff)
GST_WARNING ("Stream already present !");
return NULL;
}