mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
f9b3b46ab5
commit
26689fc437
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue