From: Lyon Wang Date: Wed, 4 Nov 2015 18:16:52 +0800 Subject: [PATCH] unset FLAG_DISCONT when push to adapter Since DISCONT flag will be handled by priv->discont flag. There is no need to copy DISCONT flag to adapter. Otherwise, the DISCONT flag will alwasys been set on each frame, for the first chain in buffer. https://bugzilla.gnome.org/show_bug.cgi?id=757575 Upstream-Status: Pending Signed-off-by: Lyon Wang --- libs/gst/base/gstbaseparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index 1d4c9248d2db..18667cc4edca 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -3160,6 +3160,7 @@ gst_base_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) parse->priv->discont = TRUE; } } + GST_BUFFER_FLAG_UNSET(buffer, GST_BUFFER_FLAG_DISCONT); gst_adapter_push (parse->priv->adapter, buffer); }