mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
baseparse: check for remaining data when draining in push mode
This commit is contained in:
parent
497105ca1b
commit
d0ea041a38
1 changed files with 5 additions and 0 deletions
|
@ -1103,6 +1103,11 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
|
|
||||||
if (G_UNLIKELY (parse->priv->drain)) {
|
if (G_UNLIKELY (parse->priv->drain)) {
|
||||||
min_size = gst_adapter_available (parse->adapter);
|
min_size = gst_adapter_available (parse->adapter);
|
||||||
|
GST_DEBUG_OBJECT (parse, "draining, data left: %d", min_size);
|
||||||
|
if (G_UNLIKELY (!min_size)) {
|
||||||
|
gst_buffer_unref (tmpbuf);
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Collect at least min_frame_size bytes */
|
/* Collect at least min_frame_size bytes */
|
||||||
|
|
Loading…
Reference in a new issue