summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun@osg.samsung.com>2016-09-29 16:12:24 (GMT)
committerArun Raghavan <arun@osg.samsung.com>2016-09-30 07:29:20 (GMT)
commitcd8f463345d6a17bc3dfc7567060b3bac8845bf5 (patch)
tree5659391866e556fb6c01d145a836ed59dbbb007a
parente98575417c2c4a52e97c1f4e1e6e96b3d43955b5 (diff)
downloadgst-plugins-bad-cd8f463345d6a17bc3dfc7567060b3bac8845bf5.tar.gz
gst-plugins-bad-cd8f463345d6a17bc3dfc7567060b3bac8845bf5.tar.xz
waylandsink: Actually use buffer pool config after setting it up
CID: 1373420
-rw-r--r--ext/wayland/gstwaylandsink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c
index e896c7f..6e7510b 100644
--- a/ext/wayland/gstwaylandsink.c
+++ b/ext/wayland/gstwaylandsink.c
@@ -437,7 +437,7 @@ gst_wayland_create_pool (GstWaylandSink * sink, GstCaps * caps)
pool = gst_video_buffer_pool_new ();
structure = gst_buffer_pool_get_config (pool);
- gst_buffer_pool_config_set_params (structure, caps, size, 0, 0);
+ gst_buffer_pool_config_set_params (structure, caps, size, 2, 0);
gst_buffer_pool_config_set_allocator (structure, gst_wl_shm_allocator_get (),
NULL);
@@ -673,7 +673,8 @@ gst_wayland_sink_show_frame (GstVideoSink * vsink, GstBuffer * buffer)
gst_buffer_pool_config_set_params (config, caps, size, 0, 0);
/* This is a video pool, it should not fail with basic setings */
- if (!gst_buffer_pool_set_active (sink->pool, TRUE))
+ if (!gst_buffer_pool_set_config (sink->pool, config) ||
+ !gst_buffer_pool_set_active (sink->pool, TRUE))
goto activate_failed;
}