basetransform: fix invalid access to unreffed allocation query

This commit is contained in:
René Stadler 2011-10-28 21:40:47 +02:00
parent 66e4966aee
commit c7fba914a0

View file

@ -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,