summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2015-02-03 13:32:47 +1100
committerMatthew Waters <matthew@centricular.com>2015-02-03 14:32:55 +1100
commite7a10a2d447bc3abfb590f07ee3a2b05939226f3 (patch)
tree01611ff8ee680a3fec8213949614d404b2b465f2 /gst-libs/gst/gl
parent73c2ab70fcf0749329bc457b0ca817460d45f712 (diff)
downloadgstreamer-plugins-bad-e7a10a2d447bc3abfb590f07ee3a2b05939226f3.tar.gz
glcolorconvert: put GstGLSyncMeta on output buffers
allows thread safely using the provided output buffer in a separate thread
Diffstat (limited to 'gst-libs/gst/gl')
-rw-r--r--gst-libs/gst/gl/gstglcolorconvert.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c
index 2594e2e9a..755e58777 100644
--- a/gst-libs/gst/gl/gstglcolorconvert.c
+++ b/gst-libs/gst/gl/gstglcolorconvert.c
@@ -1560,6 +1560,14 @@ out:
convert->outbuf = NULL;
}
+ if (convert->outbuf) {
+ GstGLSyncMeta *sync_meta =
+ gst_buffer_add_gl_sync_meta (convert->context, convert->outbuf);
+
+ if (sync_meta)
+ gst_gl_sync_meta_set_sync_point (sync_meta, convert->context);
+ }
+
convert->priv->result = res;
return;
}