diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-04-22 12:56:54 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-04-22 12:56:54 +0200 |
commit | 516597d5fab85bbd8033082ce54c10984dfd327d (patch) | |
tree | 308a8bf6054f276956e6a6410952df699668fa2f /gst/mpegtsdemux | |
parent | 60d7e45cab2b6b0767028a130331bd255a367c43 (diff) |
mpegtspacketizer: Remove dead code and simplify if statement
CID 1204274
Diffstat (limited to 'gst/mpegtsdemux')
-rw-r--r-- | gst/mpegtsdemux/mpegtspacketizer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/mpegtsdemux/mpegtspacketizer.c b/gst/mpegtsdemux/mpegtspacketizer.c index 8880905d3..ba347cff2 100644 --- a/gst/mpegtsdemux/mpegtspacketizer.c +++ b/gst/mpegtsdemux/mpegtspacketizer.c @@ -2286,7 +2286,7 @@ calculate_points: lastoffset += nextgroup->values[nextgroup->last_value].offset; lastpcr += nextgroup->values[nextgroup->last_value].pcr; } - } else if (prevgroup) { + } else { GST_DEBUG ("Between group"); lastoffset = nextgroup->first_offset; lastpcr = nextgroup->pcr_offset; @@ -2295,9 +2295,6 @@ calculate_points: prevgroup->first_offset; firstpcr = 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, |