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 <lyon.wang@freescale.com>
diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c
index 18a14de..e9032df 100644
--- a/libs/gst/base/gstbaseparse.c
+++ b/libs/gst/base/gstbaseparse.c
@@ -3172,6 +3172,7 @@
parse->priv->discont = TRUE;
}
}
+ GST_BUFFER_FLAG_UNSET(buffer, GST_BUFFER_FLAG_DISCONT);
gst_adapter_push (parse->priv->adapter, buffer);
}