mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
egl: Use gst_context_writable_structure()
This commit is contained in:
parent
baa9754f6f
commit
5bc64fd579
1 changed files with 3 additions and 3 deletions
|
@ -309,7 +309,7 @@ gst_context_set_egl_display (GstContext * context, GstEGLDisplay * display)
|
|||
{
|
||||
GstStructure *s;
|
||||
|
||||
s = (GstStructure *) gst_context_get_structure (context);
|
||||
s = gst_context_writable_structure (context);
|
||||
gst_structure_set (s, GST_EGL_DISPLAY_CONTEXT_TYPE, GST_TYPE_EGL_DISPLAY,
|
||||
display, NULL);
|
||||
}
|
||||
|
@ -317,9 +317,9 @@ gst_context_set_egl_display (GstContext * context, GstEGLDisplay * display)
|
|||
gboolean
|
||||
gst_context_get_egl_display (GstContext * context, GstEGLDisplay ** display)
|
||||
{
|
||||
GstStructure *s;
|
||||
const GstStructure *s;
|
||||
|
||||
s = (GstStructure *) gst_context_get_structure (context);
|
||||
s = gst_context_get_structure (context);
|
||||
return gst_structure_get (s, GST_EGL_DISPLAY_CONTEXT_TYPE,
|
||||
GST_TYPE_EGL_DISPLAY, display, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue