update for bufferpool changes

This commit is contained in:
Wim Taymans 2012-03-15 22:11:32 +01:00
parent 583f5d1dc7
commit ed82d408b1
2 changed files with 2 additions and 2 deletions

View file

@ -2067,7 +2067,7 @@ gst_base_video_decoder_set_src_caps (GstBaseVideoDecoder * base_video_decoder)
base_video_decoder->pool = pool;
config = gst_buffer_pool_get_config (pool);
gst_buffer_pool_config_set (config, caps, size, min, max, 0, 0, 0);
gst_buffer_pool_config_set_params (config, caps, size, min, max);
state->bytes_per_picture = size;
if (gst_query_has_allocation_meta (query, GST_VIDEO_META_API_TYPE)) {

View file

@ -726,7 +726,7 @@ gst_base_audio_visualizer_src_negotiate (GstBaseAudioVisualizer * scope)
}
config = gst_buffer_pool_get_config (pool);
gst_buffer_pool_config_set (config, target, size, min, max, 0, 0, 0);
gst_buffer_pool_config_set_params (config, target, size, min, max);
gst_buffer_pool_set_config (pool, config);
if (scope->pool) {