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:
Nicolas Dufresne 2014-05-08 14:12:16 -04:00
parent 23e69d98d8
commit 157befa04c

View file

@ -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, &params);
}
if (!gst_buffer_pool_set_config (pool, config))