mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +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
|
@ -92,7 +92,7 @@ gst_egl_image_memory_get_type (GstMemory * mem)
|
||||||
}
|
}
|
||||||
|
|
||||||
GstEGLImageOrientation
|
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),
|
g_return_val_if_fail (gst_is_egl_image_memory (mem),
|
||||||
GST_EGL_IMAGE_ORIENTATION_X_NORMAL_Y_NORMAL);
|
GST_EGL_IMAGE_ORIENTATION_X_NORMAL_Y_NORMAL);
|
||||||
|
@ -104,7 +104,8 @@ gst_egl_image_memory_get_orientation (GstMemory *mem)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
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));
|
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);
|
g_return_if_fail (display != NULL);
|
||||||
|
|
||||||
if (g_atomic_int_dec_and_test (&display->refcount)) {
|
if (g_atomic_int_dec_and_test (&display->refcount)) {
|
||||||
if (display != EGL_NO_DISPLAY)
|
if (display->display != EGL_NO_DISPLAY)
|
||||||
eglTerminate (display->display);
|
eglTerminate (display->display);
|
||||||
g_slice_free (GstEGLDisplay, display);
|
g_slice_free (GstEGLDisplay, display);
|
||||||
}
|
}
|
||||||
|
@ -340,4 +341,3 @@ gst_egl_display_get (GstEGLDisplay * display)
|
||||||
G_DEFINE_BOXED_TYPE (GstEGLDisplay, gst_egl_display,
|
G_DEFINE_BOXED_TYPE (GstEGLDisplay, gst_egl_display,
|
||||||
(GBoxedCopyFunc) gst_egl_display_ref,
|
(GBoxedCopyFunc) gst_egl_display_ref,
|
||||||
(GBoxedFreeFunc) gst_egl_display_unref);
|
(GBoxedFreeFunc) gst_egl_display_unref);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue