diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-08-15 14:31:15 +0200 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-08-15 15:55:08 +0200 |
commit | f935b2c547e3ed91c2bf3301926273891bd110b5 (patch) | |
tree | 6ff6b1610d02b05b7cf00d67343ee71b1dc5449f /ext/gtk/gstgtkglsink.c | |
parent | 74486ab7e17385655d4fa01367afe661a1cb9d93 (diff) | |
download | gstreamer-plugins-bad-f935b2c547e3ed91c2bf3301926273891bd110b5.tar.gz |
glsink: Enable sync meta on pools we offer
As the upload is asynchronous, we need to enable the sync meta to
gain correct rendering. The buffer pool receiver don't know about
that.
Diffstat (limited to 'ext/gtk/gstgtkglsink.c')
-rw-r--r-- | ext/gtk/gstgtkglsink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/gtk/gstgtkglsink.c b/ext/gtk/gstgtkglsink.c index 16797d32c..d59880c53 100644 --- a/ext/gtk/gstgtkglsink.c +++ b/ext/gtk/gstgtkglsink.c @@ -249,6 +249,9 @@ gst_gtk_gl_sink_propose_allocation (GstBaseSink * bsink, GstQuery * query) config = gst_buffer_pool_get_config (pool); gst_buffer_pool_config_set_params (config, caps, size, 0, 0); + gst_buffer_pool_config_add_option (config, + GST_BUFFER_POOL_OPTION_GL_SYNC_META); + if (!gst_buffer_pool_set_config (pool, config)) goto config_failed; |