mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
basesrc: unref allocation query when no longer needed
This commit is contained in:
parent
7a0e401133
commit
c79f8a52af
1 changed files with 2 additions and 2 deletions
|
@ -2683,8 +2683,6 @@ gst_base_src_prepare_allocation (GstBaseSrc * basesrc, GstCaps * caps)
|
||||||
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;
|
||||||
|
|
||||||
|
@ -2706,6 +2704,8 @@ gst_base_src_prepare_allocation (GstBaseSrc * basesrc, GstCaps * caps)
|
||||||
gst_buffer_pool_set_config (pool, config);
|
gst_buffer_pool_set_config (pool, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_query_unref (query);
|
||||||
|
|
||||||
result =
|
result =
|
||||||
gst_base_src_set_allocation (basesrc, pool, allocator, prefix, alignment);
|
gst_base_src_set_allocation (basesrc, pool, allocator, prefix, alignment);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue