summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2013-03-29 10:33:10 +0100
committerJosep Torra <n770galaxy@gmail.com>2013-03-29 10:33:10 +0100
commita9a385c512dab124daed251204307631f68d7677 (patch)
tree10b242b7c55d5cb6ec55ea42ebb3b7c2b9b39a9a /gst-libs
parent6e9ff0a160b89b6b9a87d7bd5c8c7dba68b813df (diff)
downloadgstreamer-plugins-bad-a9a385c512dab124daed251204307631f68d7677.tar.gz
egl: check on the proper display and indent some lines
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/egl/egl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst-libs/gst/egl/egl.c b/gst-libs/gst/egl/egl.c
index b7e7d6bfd..73b9c5e91 100644
--- a/gst-libs/gst/egl/egl.c
+++ b/gst-libs/gst/egl/egl.c
@@ -92,7 +92,7 @@ gst_egl_image_memory_get_type (GstMemory * mem)
}
GstEGLImageOrientation
-gst_egl_image_memory_get_orientation (GstMemory *mem)
+gst_egl_image_memory_get_orientation (GstMemory * mem)
{
g_return_val_if_fail (gst_is_egl_image_memory (mem),
GST_EGL_IMAGE_ORIENTATION_X_NORMAL_Y_NORMAL);
@@ -104,7 +104,8 @@ gst_egl_image_memory_get_orientation (GstMemory *mem)
}
void
-gst_egl_image_memory_set_orientation (GstMemory *mem, GstEGLImageOrientation orientation)
+gst_egl_image_memory_set_orientation (GstMemory * mem,
+ GstEGLImageOrientation orientation)
{
g_return_if_fail (gst_is_egl_image_memory (mem));
@@ -323,7 +324,7 @@ gst_egl_display_unref (GstEGLDisplay * display)
g_return_if_fail (display != NULL);
if (g_atomic_int_dec_and_test (&display->refcount)) {
- if (display != EGL_NO_DISPLAY)
+ if (display->display != EGL_NO_DISPLAY)
eglTerminate (display->display);
g_slice_free (GstEGLDisplay, display);
}
@@ -340,4 +341,3 @@ gst_egl_display_get (GstEGLDisplay * display)
G_DEFINE_BOXED_TYPE (GstEGLDisplay, gst_egl_display,
(GBoxedCopyFunc) gst_egl_display_ref,
(GBoxedFreeFunc) gst_egl_display_unref);
-