mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
mpegts: Check is program is identical before updating
There is no need to update the program if it's identical :) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3421>
This commit is contained in:
parent
13723198a1
commit
a87b7da308
1 changed files with 4 additions and 4 deletions
|
@ -1204,6 +1204,10 @@ mpegts_base_apply_pmt (MpegTSBase * base, GstMpegtsSection * section)
|
||||||
if (G_UNLIKELY (old_program == NULL))
|
if (G_UNLIKELY (old_program == NULL))
|
||||||
goto no_program;
|
goto no_program;
|
||||||
|
|
||||||
|
if (G_UNLIKELY (mpegts_base_is_same_program (base, old_program, section->pid,
|
||||||
|
pmt)))
|
||||||
|
goto same_program;
|
||||||
|
|
||||||
if (base->streams_aware
|
if (base->streams_aware
|
||||||
&& mpegts_base_is_program_update (base, old_program, section->pid, pmt)) {
|
&& mpegts_base_is_program_update (base, old_program, section->pid, pmt)) {
|
||||||
GST_FIXME ("We are streams_aware and new program is an update");
|
GST_FIXME ("We are streams_aware and new program is an update");
|
||||||
|
@ -1212,10 +1216,6 @@ mpegts_base_apply_pmt (MpegTSBase * base, GstMpegtsSection * section)
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_UNLIKELY (mpegts_base_is_same_program (base, old_program, section->pid,
|
|
||||||
pmt)))
|
|
||||||
goto same_program;
|
|
||||||
|
|
||||||
/* If the current program is active, this means we have a new program */
|
/* If the current program is active, this means we have a new program */
|
||||||
if (old_program->active) {
|
if (old_program->active) {
|
||||||
MpegTSBaseClass *klass = GST_MPEGTS_BASE_GET_CLASS (base);
|
MpegTSBaseClass *klass = GST_MPEGTS_BASE_GET_CLASS (base);
|
||||||
|
|
Loading…
Reference in a new issue