egl: Use gst_context_writable_structure()

This commit is contained in:
Sebastian Dröge 2013-04-18 16:11:26 +02:00
parent baa9754f6f
commit 5bc64fd579

View file

@ -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);
} }