projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c740bad
)
allocation: Allow allocation pool without size
author
Nicolas Dufresne
<nicolas.dufresne@collabora.com>
Sat, 14 Mar 2015 11:57:33 +0000
(11:57 +0000)
committer
Nicolas 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
patch
|
blob
|
history
diff --git
a/gst/gstquery.c
b/gst/gstquery.c
index
fa82eca
..
2828bd5
100644
(file)
--- 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),