summaryrefslogtreecommitdiff
path: root/thumbnailer
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-08 11:11:23 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-08 11:11:23 +0100
commit1ef9b86df1cca6dde71529f03b66407953d000c9 (patch)
treeb3d41d58cbb1d52e3871e40258539ac760cd265e /thumbnailer
parentfa4d70ea3101f5a70b33977ba9b7673ddfb36762 (diff)
parent210cc61ee4191465805a770881235c677041f929 (diff)
Update upstream source from tag 'upstream/0.32.15'
Update to upstream version '0.32.15' with Debian dir ab0b4536d524ccbb338db4641523f7abd3f9a2fd
Diffstat (limited to 'thumbnailer')
-rw-r--r--thumbnailer/shotwell-video-thumbnailer.vala12
1 files changed, 7 insertions, 5 deletions
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);