mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
tsdemux: Fix mpegts_packetizer_set_current_pcr_offset()
When adjusting the PCR offset of groups, adjust the correct group entry from the list - not the current group repeatedly.
This commit is contained in:
parent
a99164811c
commit
bfe2994101
1 changed files with 7 additions and 7 deletions
|
@ -2334,17 +2334,17 @@ mpegts_packetizer_set_current_pcr_offset (MpegTSPacketizer2 * packetizer,
|
|||
if (tgroup == group)
|
||||
apply = TRUE;
|
||||
if (apply) {
|
||||
group->pcr_offset += delta;
|
||||
tgroup->pcr_offset += delta;
|
||||
GST_DEBUG ("Update group PCR %" GST_TIME_FORMAT " (offset %"
|
||||
G_GUINT64_FORMAT " pcr_offset %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (PCRTIME_TO_GSTTIME (group->first_pcr)),
|
||||
group->first_offset,
|
||||
GST_TIME_ARGS (PCRTIME_TO_GSTTIME (group->pcr_offset)));
|
||||
GST_TIME_ARGS (PCRTIME_TO_GSTTIME (tgroup->first_pcr)),
|
||||
tgroup->first_offset,
|
||||
GST_TIME_ARGS (PCRTIME_TO_GSTTIME (tgroup->pcr_offset)));
|
||||
} else
|
||||
GST_DEBUG ("Not modifying group PCR %" GST_TIME_FORMAT " (offset %"
|
||||
G_GUINT64_FORMAT " pcr_offset %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (PCRTIME_TO_GSTTIME (group->first_pcr)),
|
||||
group->first_offset,
|
||||
GST_TIME_ARGS (PCRTIME_TO_GSTTIME (group->pcr_offset)));
|
||||
GST_TIME_ARGS (PCRTIME_TO_GSTTIME (tgroup->first_pcr)),
|
||||
tgroup->first_offset,
|
||||
GST_TIME_ARGS (PCRTIME_TO_GSTTIME (tgroup->pcr_offset)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue