mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
gl: use gst_gl_display_create_context in more elements.
glbasefilter, glbasemixer and gltestsrc. https://bugzilla.gnome.org/show_bug.cgi?id=750310
This commit is contained in:
parent
df274deb0b
commit
884e68c713
1 changed files with 5 additions and 4 deletions
|
@ -469,15 +469,16 @@ gst_gl_base_mixer_decide_allocation (GstGLBaseMixer * mix, GstQuery * query)
|
||||||
if (!mix->context) {
|
if (!mix->context) {
|
||||||
GST_OBJECT_LOCK (mix->display);
|
GST_OBJECT_LOCK (mix->display);
|
||||||
do {
|
do {
|
||||||
if (mix->context)
|
if (mix->context) {
|
||||||
gst_object_unref (mix->context);
|
gst_object_unref (mix->context);
|
||||||
|
mix->context = NULL;
|
||||||
|
}
|
||||||
/* just get a GL context. we don't care */
|
/* just get a GL context. we don't care */
|
||||||
mix->context =
|
mix->context =
|
||||||
gst_gl_display_get_gl_context_for_thread (mix->display, NULL);
|
gst_gl_display_get_gl_context_for_thread (mix->display, NULL);
|
||||||
if (!mix->context) {
|
if (!mix->context) {
|
||||||
mix->context = gst_gl_context_new (mix->display);
|
if (!gst_gl_display_create_context (mix->display,
|
||||||
if (!gst_gl_context_create (mix->context, mix->priv->other_context,
|
mix->priv->other_context, &mix->context, &error)) {
|
||||||
&error)) {
|
|
||||||
GST_OBJECT_UNLOCK (mix->display);
|
GST_OBJECT_UNLOCK (mix->display);
|
||||||
goto context_error;
|
goto context_error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue