summaryrefslogtreecommitdiff
path: root/thumbnailer
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-08 11:11:41 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-08 11:11:41 +0100
commit360a72d4363f513a3acaebb084ab39fe3ff22832 (patch)
treeb3d41d58cbb1d52e3871e40258539ac760cd265e /thumbnailer
parentfa4d70ea3101f5a70b33977ba9b7673ddfb36762 (diff)
parent1ef9b86df1cca6dde71529f03b66407953d000c9 (diff)
Merge branch 'feature/upstream' into develop
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);