mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
pool-nego: Correctly reset the configuration
When pool cannot be used, correctly reset the configuration before configuration a default pool.
This commit is contained in:
parent
23e69d98d8
commit
157befa04c
1 changed files with 2 additions and 0 deletions
|
@ -3067,6 +3067,8 @@ gst_base_src_decide_allocation_default (GstBaseSrc * basesrc, GstQuery * query)
|
|||
|
||||
gst_object_unref (pool);
|
||||
pool = gst_buffer_pool_new ();
|
||||
gst_buffer_pool_config_set_params (config, outcaps, size, min, max);
|
||||
gst_buffer_pool_config_set_allocator (config, allocator, ¶ms);
|
||||
}
|
||||
|
||||
if (!gst_buffer_pool_set_config (pool, config))
|
||||
|
|
Loading…
Reference in a new issue