glcontext: implement checking whether a context has been shared
authorMatthew Waters <matthew@centricular.com>
Thu, 7 Jan 2016 03:02:52 +0000 (14:02 +1100)
committerMatthew Waters <matthew@centricular.com>
Thu, 7 Jan 2016 03:11:13 +0000 (14:11 +1100)
commit2aadd7eaf9e417afdd7040781c64fe6cd92d4d01
tree64b1db0aa494cc944c9b00929859242aa2fd8c87
parent17f0faa368fa8cfb542819fd8af5f5f418ecb7d4
glcontext: implement checking whether a context has been shared

Some operations are unnecessary when running with only a single GL
context.
e.g. glFlush when setting a fence object as the flush happens on wait.

API: gst_gl_context_is_shared
gst-libs/gst/gl/gstglcontext.c
gst-libs/gst/gl/gstglcontext.h
tests/check/libs/gstglcontext.c