From 9b845133377275e0e218f878d739b3869efc7510 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Wed, 22 Feb 2017 11:23:19 +0200 Subject: [PATCH] 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 --- gst/multifile/gstsplitmuxpartreader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/multifile/gstsplitmuxpartreader.c b/gst/multifile/gstsplitmuxpartreader.c index 59ecb36f66..784c4bbdff 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; }