From 210cc61ee4191465805a770881235c677041f929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 8 Mar 2026 11:11:07 +0100 Subject: New upstream version 0.32.15 --- thumbnailer/shotwell-video-thumbnailer.vala | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'thumbnailer') diff --git a/thumbnailer/shotwell-video-thumbnailer.vala b/thumbnailer/shotwell-video-thumbnailer.vala index 5974934..b6bdbed 100644 --- a/thumbnailer/shotwell-video-thumbnailer.vala +++ b/thumbnailer/shotwell-video-thumbnailer.vala @@ -126,12 +126,14 @@ class ShotwellThumbnailer { } } - // Save the pixbuf. - if (direction != Gdk.PixbufRotation.NONE) { - pixbuf = pixbuf.rotate_simple(direction); + if (pixbuf != null) { + // Save the pixbuf. + if (direction != Gdk.PixbufRotation.NONE) { + pixbuf = pixbuf.rotate_simple(direction); + } + pixbuf.save_to_buffer(out pngdata, "png"); + out.write(pngdata); } - pixbuf.save_to_buffer(out pngdata, "png"); - out.write(pngdata); // cleanup and exit. pipeline.set_state(Gst.State.NULL); -- cgit v1.2.3