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)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:14 +0000 (19:32 +0000)
commit472970324c45baba935b8d9cfc56d23d64a07506
tree14e9a342fa946bc11e406ec45b554cf21a1d4168
parenta0a0e5124987a8b9427fe38cb101d417ba4f4bfb
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