basesrc: unref allocation query when no longer needed

This commit is contained in:
Mark Nauwelaerts 2011-06-28 22:18:46 +02:00
parent 7a0e401133
commit c79f8a52af

View file

@ -2683,8 +2683,6 @@ gst_base_src_prepare_allocation (GstBaseSrc * basesrc, GstCaps * caps)
gst_query_parse_allocation_params (query, &size, &min, &max, &prefix,
&alignment, &pool);
gst_query_unref (query);
if (size == 0) {
const gchar *mem = NULL;
@ -2706,6 +2704,8 @@ gst_base_src_prepare_allocation (GstBaseSrc * basesrc, GstCaps * caps)
gst_buffer_pool_set_config (pool, config);
}
gst_query_unref (query);
result =
gst_base_src_set_allocation (basesrc, pool, allocator, prefix, alignment);