allocation: Allow allocation pool without size
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Sat, 14 Mar 2015 11:57:33 +0000 (11:57 +0000)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Sat, 14 Mar 2015 12:00:53 +0000 (12:00 +0000)
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

index fa82eca..2828bd5 100644 (file)
@@ -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),