baseparse: check for remaining data when draining in push mode

This commit is contained in:
Mark Nauwelaerts 2009-12-18 13:30:29 +01:00 committed by Tim-Philipp Müller
parent 23e55f4d6b
commit a7f46ed82a

View file

@ -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 */