From 32ddcf102cb0876139515d714ce98610cefc63f2 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Tue, 21 Jul 2015 11:28:08 +0100 Subject: [PATCH] caopengllayersink: use gst_gl_display_create_context https://bugzilla.gnome.org/show_bug.cgi?id=750310 --- ext/gl/caopengllayersink.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/gl/caopengllayersink.m b/ext/gl/caopengllayersink.m index c2e3e027ea..e4b19020bf 100644 --- a/ext/gl/caopengllayersink.m +++ b/ext/gl/caopengllayersink.m @@ -357,12 +357,8 @@ _ensure_gl_setup (GstCAOpenGLLayerSink * ca_sink) gst_gl_display_filter_gl_api (ca_sink->display, SUPPORTED_GL_APIS); if (!ca_sink->context) { - ca_sink->context = gst_gl_context_new (ca_sink->display); - if (!ca_sink->context) - goto context_creation_error; - - if (!gst_gl_context_create (ca_sink->context, ca_sink->other_context, - &error)) { + if (!gst_gl_display_create_context (ca_sink->display, + ca_sink->other_context, &ca_sink->context, &error)) { goto context_error; } }