From 9bcebaacc7508bdb41bba1250a4493321f72ea3d Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 28 Dec 2016 13:45:54 +0100 Subject: [PATCH] baseparse: also unset DISCONT on buffers in reverse playback fragments --- libs/gst/base/gstbaseparse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index ff9c6d2..34b40eb 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -2783,6 +2783,12 @@ gst_base_parse_send_buffers (GstBaseParse * parse) if (first) { GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT); first = FALSE; + } else { + /* likewise, subsequent buffers should never have DISCONT + * according to the "reverse fragment protocol", or such would + * confuse a downstream decoder + * (could be DISCONT due to aggregating upstream fragments by parsing) */ + GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DISCONT); } /* iterate output queue an push downstream */ -- 2.7.4