glimagesink: correctly use the sync meta across multiple contexts
authorMatthew Waters <matthew@centricular.com>
Tue, 19 May 2015 06:22:00 +0000 (16:22 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:01 +0000 (19:32 +0000)
commitf272500ccb462e3ef91097a69d5a92bbdfe1968b
tree3f305500219cab2a56a75d886ed9b320da663a76
parente8e84cf6b38246063704cf287754a5ae7ba1cef8
glimagesink: correctly use the sync meta across multiple contexts

1. Set the sync point after the (possible) upload has occured
2. Wait in the correct GL context (the draw context)

Note: We don't add the GL sync meta to the input buffer as it's not
writable and a copy would be expensive.
ext/gl/gstglimagesink.c
ext/gl/gstglimagesink.h