waylandsink: Properly configure internal pool

There was a small omission in the code. It still worked, but the pool
configuration may not have been optimimal.
This commit is contained in:
Arun Raghavan 2016-09-29 12:49:39 -04:00 committed by Nicolas Dufresne
parent ff579a7c8f
commit 312c8c9f7c

View file

@ -670,7 +670,7 @@ gst_wayland_sink_show_frame (GstVideoSink * vsink, GstBuffer * buffer)
config = gst_buffer_pool_get_config (sink->pool);
gst_buffer_pool_config_get_params (config, &caps, &size, NULL, NULL);
gst_buffer_pool_config_set_params (config, caps, size, 0, 0);
gst_buffer_pool_config_set_params (config, caps, size, 2, 0);
/* This is a video pool, it should not fail with basic setings */
if (!gst_buffer_pool_set_config (sink->pool, config) ||