basetransform: Correctly reset configuration
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 9 May 2014 18:28:59 +0000 (14:28 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 9 May 2014 18:30:03 +0000 (14:30 -0400)
When pool can't we use, and we fall back to default pool, we need to
correctly reset that pool configuration.

libs/gst/base/gstbasetransform.c

index dbc4da9..f82a9b8 100644 (file)
@@ -911,6 +911,8 @@ gst_base_transform_default_decide_allocation (GstBaseTransform * trans,
 
         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))