mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
baseparse: check for remaining data when draining in push mode
This commit is contained in:
parent
d51d8ca35c
commit
a61183fe29
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)) {
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue