egl: Use gst_context_writable_structure()
This commit is contained in:
parent
baa9754f6f
commit
5bc64fd579
@ -309,7 +309,7 @@ gst_context_set_egl_display (GstContext * context, GstEGLDisplay * display)
|
|||||||
{
|
{
|
||||||
GstStructure *s;
|
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,
|
gst_structure_set (s, GST_EGL_DISPLAY_CONTEXT_TYPE, GST_TYPE_EGL_DISPLAY,
|
||||||
display, NULL);
|
display, NULL);
|
||||||
}
|
}
|
||||||
@ -317,9 +317,9 @@ gst_context_set_egl_display (GstContext * context, GstEGLDisplay * display)
|
|||||||
gboolean
|
gboolean
|
||||||
gst_context_get_egl_display (GstContext * context, GstEGLDisplay ** display)
|
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,
|
return gst_structure_get (s, GST_EGL_DISPLAY_CONTEXT_TYPE,
|
||||||
GST_TYPE_EGL_DISPLAY, display, NULL);
|
GST_TYPE_EGL_DISPLAY, display, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user