mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
qmlglsink: propagate the context up the the application
Allows the application to be notified of the OpenGL context creation.
This commit is contained in:
parent
5e9f80c79a
commit
a1f53b4f46
1 changed files with 7 additions and 0 deletions
|
@ -320,6 +320,13 @@ gst_qt_sink_change_state (GstElement * element, GstStateChange transition)
|
|||
(NULL));
|
||||
return GST_STATE_CHANGE_FAILURE;
|
||||
}
|
||||
|
||||
GST_OBJECT_LOCK (qt_sink->display);
|
||||
gst_gl_display_add_context (qt_sink->display, qt_sink->context);
|
||||
GST_OBJECT_UNLOCK (qt_sink->display);
|
||||
|
||||
gst_gl_element_propagate_display_context (GST_ELEMENT (qt_sink), qt_sink->display);
|
||||
|
||||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue