From 157befa04cadff835ab79ef93318e5e83c94cb99 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 8 May 2014 14:12:16 -0400 Subject: [PATCH] pool-nego: Correctly reset the configuration When pool cannot be used, correctly reset the configuration before configuration a default pool. --- libs/gst/base/gstbasesrc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 8b84e61d3a..132e94246f 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -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)) -- 2.34.1