waylandsink: Properly configure internal pool
authorArun Raghavan <arun@arunraghavan.net>
Thu, 29 Sep 2016 16:49:39 +0000 (12:49 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 13 Oct 2016 16:10:51 +0000 (12:10 -0400)
There was a small omission in the code. It still worked, but the pool
configuration may not have been optimimal.

ext/wayland/gstwaylandsink.c

index 6e7510b..4b39ae1 100644 (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) ||