summaryrefslogtreecommitdiff
path: root/src/photos/GRaw.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/photos/GRaw.vala')
-rw-r--r--src/photos/GRaw.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/photos/GRaw.vala b/src/photos/GRaw.vala
index 53c328c..ec1df8d 100644
--- a/src/photos/GRaw.vala
+++ b/src/photos/GRaw.vala
@@ -125,7 +125,8 @@ public class ProcessedImage {
// to be decoded before being useful. This will throw an error if the format is not
// supported
try {
- pixbuf = new Gdk.Pixbuf.from_stream(new MemoryInputStream.from_data(image.data, null),
+ var bytes = new Bytes.static (image.data);
+ pixbuf = new Gdk.Pixbuf.from_stream(new MemoryInputStream.from_bytes(bytes),
null);
} catch (Error err) {
throw new Exception.UNSUPPORTED_THUMBNAIL(err.message);