mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +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,
|
||||
&alignment, &pool);
|
||||
|
||||
gst_query_unref (query);
|
||||
|
||||
if (size == 0) {
|
||||
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_query_unref (query);
|
||||
|
||||
result =
|
||||
gst_base_src_set_allocation (basesrc, pool, allocator, prefix, alignment);
|
||||
|
||||
|
|
Loading…
Reference in a new issue