gst_query_set_nth_alloction_pool() is transfer none on the pool, so we must
unref the pool when done.
n_allocation = gst_query_get_n_allocation_pools (query);
while (i < n_allocation) {
n_allocation = gst_query_get_n_allocation_pools (query);
while (i < n_allocation) {
+ GstBufferPool *pool = NULL;
guint size, min, max;
gst_query_parse_nth_allocation_pool (query, i, &pool, &size, &min, &max);
guint size, min, max;
gst_query_parse_nth_allocation_pool (query, i, &pool, &size, &min, &max);
}
gst_query_set_nth_allocation_pool (query, i, pool, size, min + 1, max);
}
gst_query_set_nth_allocation_pool (query, i, pool, size, min + 1, max);
+ if (pool)
+ gst_object_unref (pool);