summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-19 14:31:14 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-19 14:32:30 +0100
commit8f9c2e8e44358411e8e7eb14ed05100713551da2 (patch)
treeba280be178331df6deb6ec7650685fd879570b71 /gst-libs
parent66d0d86e78526f34e86f32dcceaf50ec15575ba1 (diff)
downloadgstreamer-plugins-bad-8f9c2e8e44358411e8e7eb14ed05100713551da2.tar.gz
egl: Fix some return values in g_return_val_if_fail()
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/egl/egl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst-libs/gst/egl/egl.c b/gst-libs/gst/egl/egl.c
index cbbd8e330..a0d65cab0 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;
}