Commit c7fba914 authored by René Stadler's avatar René Stadler
Browse files

basetransform: fix invalid access to unreffed allocation query

parent 66e4966a
......@@ -822,7 +822,6 @@ gst_base_transform_do_bufferpool (GstBaseTransform * trans, GstCaps * outcaps)
/* we got configuration from our peer, parse them */
gst_query_parse_allocation_params (query, &size, &min, &max, &prefix,
&alignment, &pool);
gst_query_unref (query);
if (size == 0) {
const gchar *mem = NULL;
......@@ -846,6 +845,8 @@ gst_base_transform_do_bufferpool (GstBaseTransform * trans, GstCaps * outcaps)
gst_buffer_pool_set_config (pool, config);
}
gst_query_unref (query);
/* and store */
result =
gst_base_transform_set_allocation (trans, pool, allocator, prefix,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment