basetransform: Correctly reset configuration

When pool can't we use, and we fall back to default pool, we need to
correctly reset that pool configuration.
This commit is contained in:
Nicolas Dufresne 2014-05-09 14:28:59 -04:00
parent bf9018b77c
commit e73907200c

View 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))