mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
mpegtspacketizer: Remove dead code and simplify if statement
CID 1204274
This commit is contained in:
parent
60d7e45cab
commit
516597d5fa
1 changed files with 1 additions and 4 deletions
|
@ -2286,7 +2286,7 @@ calculate_points:
|
||||||
lastoffset += nextgroup->values[nextgroup->last_value].offset;
|
lastoffset += nextgroup->values[nextgroup->last_value].offset;
|
||||||
lastpcr += nextgroup->values[nextgroup->last_value].pcr;
|
lastpcr += nextgroup->values[nextgroup->last_value].pcr;
|
||||||
}
|
}
|
||||||
} else if (prevgroup) {
|
} else {
|
||||||
GST_DEBUG ("Between group");
|
GST_DEBUG ("Between group");
|
||||||
lastoffset = nextgroup->first_offset;
|
lastoffset = nextgroup->first_offset;
|
||||||
lastpcr = nextgroup->pcr_offset;
|
lastpcr = nextgroup->pcr_offset;
|
||||||
|
@ -2295,9 +2295,6 @@ calculate_points:
|
||||||
prevgroup->first_offset;
|
prevgroup->first_offset;
|
||||||
firstpcr =
|
firstpcr =
|
||||||
prevgroup->values[prevgroup->last_value].pcr + prevgroup->pcr_offset;
|
prevgroup->values[prevgroup->last_value].pcr + prevgroup->pcr_offset;
|
||||||
} else {
|
|
||||||
GST_WARNING ("Not enough information to calculate offset");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG ("Using prev PCR %" G_GUINT64_FORMAT " offset %" G_GUINT64_FORMAT,
|
GST_DEBUG ("Using prev PCR %" G_GUINT64_FORMAT " offset %" G_GUINT64_FORMAT,
|
||||||
|
|
Loading…
Reference in a new issue