From 7f6b11a5b2c508a4b2d9887c018c3bdec9c12b66 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sat, 14 Mar 2015 11:57:33 +0000 Subject: allocation: Allow allocation pool without size This allow proposing a number of buffers required even if the size of buffer is unfixed. This is often the case for encoded formats. --- gst/gstquery.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst/gstquery.c b/gst/gstquery.c index fa82ecade..2828bd550 100644 --- a/gst/gstquery.c +++ b/gst/gstquery.c @@ -1602,7 +1602,6 @@ gst_query_add_allocation_pool (GstQuery * query, GstBufferPool * pool, g_return_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_ALLOCATION); g_return_if_fail (gst_query_is_writable (query)); - g_return_if_fail (size != 0); structure = GST_QUERY_STRUCTURE (query); array = ensure_array (structure, GST_QUARK (POOL), -- cgit v1.2.3