[gnome-photos/wip/rishi/buffer-decoder: 12/16] assert jpeg



commit 993927deb142fa8715b9a02b1c37c279e5fad10b
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Sep 7 07:57:58 2018 +0200

    assert jpeg

 src/photos-gegl-buffer-codec-jpeg.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/photos-gegl-buffer-codec-jpeg.c b/src/photos-gegl-buffer-codec-jpeg.c
index 3f8c918b..24f1ab0b 100644
--- a/src/photos-gegl-buffer-codec-jpeg.c
+++ b/src/photos-gegl-buffer-codec-jpeg.c
@@ -305,6 +305,9 @@ photos_gegl_buffer_codec_jpeg_zoom_from_mipmap (PhotosGeglBufferCodecJpeg *self)
   gint buffer_width;
   gint tile_row;
 
+  g_return_if_fail (self->buffer != self->buffer_mipmap);
+  g_return_if_fail (self->pending_zoom_from_mipmap);
+
   format = gegl_buffer_get_format (self->buffer);
   g_return_if_fail (format != NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]