mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
basetransform: fix invalid access to unreffed allocation query
This commit is contained in:
parent
66e4966aee
commit
c7fba914a0
1 changed files with 2 additions and 1 deletions
|
@ -822,7 +822,6 @@ gst_base_transform_do_bufferpool (GstBaseTransform * trans, GstCaps * outcaps)
|
||||||
/* we got configuration from our peer, parse them */
|
/* we got configuration from our peer, parse them */
|
||||||
gst_query_parse_allocation_params (query, &size, &min, &max, &prefix,
|
gst_query_parse_allocation_params (query, &size, &min, &max, &prefix,
|
||||||
&alignment, &pool);
|
&alignment, &pool);
|
||||||
gst_query_unref (query);
|
|
||||||
|
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
const gchar *mem = NULL;
|
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_buffer_pool_set_config (pool, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_query_unref (query);
|
||||||
|
|
||||||
/* and store */
|
/* and store */
|
||||||
result =
|
result =
|
||||||
gst_base_transform_set_allocation (trans, pool, allocator, prefix,
|
gst_base_transform_set_allocation (trans, pool, allocator, prefix,
|
||||||
|
|
Loading…
Reference in a new issue