mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
egl: check on the proper display and indent some lines
This commit is contained in:
parent
6e9ff0a160
commit
a9a385c512
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue