summaryrefslogtreecommitdiff
path: root/thumbnailer
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-08 11:11:07 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-08 11:11:07 +0100
commit210cc61ee4191465805a770881235c677041f929 (patch)
tree22dfc8a656a39b95dba2b537f11dcbe36b5c6f0c /thumbnailer
parent7868ff68cff97b21fe6d8681f8bc0334849c4d38 (diff)
New upstream version 0.32.15upstream/0.32.15upstream
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);