mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +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 */
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue