mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
caopengllayersink: use gst_gl_display_create_context
https://bugzilla.gnome.org/show_bug.cgi?id=750310
This commit is contained in:
parent
6e7dc76b56
commit
32ddcf102c
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue