From 5bc64fd579bc458305dc8d7bb2e659437f762bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 18 Apr 2013 16:11:26 +0200 Subject: [PATCH] egl: Use gst_context_writable_structure() --- gst-libs/gst/egl/egl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/egl/egl.c b/gst-libs/gst/egl/egl.c index 12310b9fd0..1c5d04c517 100644 --- a/gst-libs/gst/egl/egl.c +++ b/gst-libs/gst/egl/egl.c @@ -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); }