egl: check on the proper display and indent some lines

This commit is contained in:
Josep Torra 2013-03-29 10:33:10 +01:00
parent 6e9ff0a160
commit a9a385c512

View file

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