From 8f9c2e8e44358411e8e7eb14ed05100713551da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 19 Mar 2013 14:31:14 +0100 Subject: [PATCH] egl: Fix some return values in g_return_val_if_fail() --- 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 cbbd8e3303..a0d65cab00 100644 --- a/gst-libs/gst/egl/egl.c +++ b/gst-libs/gst/egl/egl.c @@ -71,7 +71,7 @@ gst_egl_image_memory_get_image (GstMemory * mem) GstEGLDisplay * gst_egl_image_memory_get_display (GstMemory * mem) { - g_return_val_if_fail (gst_is_egl_image_memory (mem), EGL_NO_IMAGE_KHR); + g_return_val_if_fail (gst_is_egl_image_memory (mem), NULL); if (mem->parent) mem = mem->parent; @@ -95,7 +95,7 @@ GstEGLImageOrientation gst_egl_image_memory_get_orientation (GstMemory *mem) { g_return_val_if_fail (gst_is_egl_image_memory (mem), - GST_EGL_IMAGE_MEMORY_TYPE_INVALID); + GST_EGL_IMAGE_ORIENTATION_X_NORMAL_Y_NORMAL); if (mem->parent) mem = mem->parent; @@ -332,7 +332,7 @@ gst_egl_display_unref (GstEGLDisplay * display) EGLDisplay gst_egl_display_get (GstEGLDisplay * display) { - g_return_val_if_fail (display != NULL, NULL); + g_return_val_if_fail (display != NULL, EGL_NO_DISPLAY); return display->display; }