glsyncmeta: don't glFinish() everytime a sync point is set
authorMatthew Waters <matthew@centricular.com>
Fri, 21 Oct 2016 02:10:47 +0000 (13:10 +1100)
committerMatthew Waters <matthew@centricular.com>
Fri, 21 Oct 2016 04:54:37 +0000 (15:54 +1100)
commitcbaee81f9c7c6af8dcddfba0e87c524a4baf2ac2
treee1639df210618857bccee6158a75b6a6e3eb1af6
parenta94eef935733497baf11b55c604dd24ef7c7d299
glsyncmeta: don't glFinish() everytime a sync point is set

At minimum, we only need to glFlush() if we are in a shared GL context
environment.  Move the glFinish() to when the actual wait is requested
which may be never.  Improves the throughput on older GL systems without
GL3/GLES3 and/or fence sync objects.
gst-libs/gst/gl/gstglsyncmeta.c