summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2017-02-22 11:23:19 +0200
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2017-02-27 12:58:21 +0200
commit9b845133377275e0e218f878d739b3869efc7510 (patch)
tree54b0bd4c735d0269fc482fe8637c40d0967c0e74
parent99728792cde38ac6cd2cc30d84d5aede84b50c04 (diff)
splitmuxpartreader: ignore sparse streams when calculating the end offset of a part
A sparse stream's ending timestamp can be considerably smaller than the ending timestamps of the other streams, which can lead to skipping considerable time from the next part. https://bugzilla.gnome.org/show_bug.cgi?id=761086
-rw-r--r--gst/multifile/gstsplitmuxpartreader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/multifile/gstsplitmuxpartreader.c b/gst/multifile/gstsplitmuxpartreader.c
index 59ecb36f6..784c4bbdf 100644
--- a/gst/multifile/gstsplitmuxpartreader.c
+++ b/gst/multifile/gstsplitmuxpartreader.c
@@ -1244,7 +1244,7 @@ gst_splitmux_part_reader_get_end_offset (GstSplitMuxPartReader * reader)
SPLITMUX_PART_LOCK (reader);
for (cur = g_list_first (reader->pads); cur != NULL; cur = g_list_next (cur)) {
GstSplitMuxPartPad *part_pad = SPLITMUX_PART_PAD_CAST (cur->data);
- if (part_pad->max_ts < ret)
+ if (!part_pad->is_sparse && part_pad->max_ts < ret)
ret = part_pad->max_ts;
}