summaryrefslogtreecommitdiff
path: root/thumbnailer/shotwell-video-thumbnailer.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-09 18:19:48 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-09 18:19:48 +0100
commitb11befe1c9ea84969ebd418e96f7209b772b58d0 (patch)
tree4cee94cb12ad4dd24253c2a111b87577f50ed80d /thumbnailer/shotwell-video-thumbnailer.vala
parentd048b2c970f6182a2201b5ba6c29d0d155abc22b (diff)
parent8656a544ddcf098e10df1430eecb75902dbc7999 (diff)
Merge branch 'release/debian/0.32.15-1'HEADdebian/0.32.15-1master
Diffstat (limited to 'thumbnailer/shotwell-video-thumbnailer.vala')
-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);