summaryrefslogtreecommitdiff
path: root/src/camera/GPhoto.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:55:20 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:55:20 +0100
commitf6140ff1c9ec493d947da5b346508846e7a1a06f (patch)
treec01b9164ee4b0d46b6670ccee45f6181c6237d7f /src/camera/GPhoto.vala
parent0f67b3cc674377559e66c5a6729fd499049a992f (diff)
parent2492891f112caac6076ce49721d9d5d78a152c3a (diff)
Update upstream source from tag 'upstream/0.26.4'
Update to upstream version '0.26.4' with Debian dir fae3cc48a8ec2f37979206f90dc828cbebee14c4
Diffstat (limited to 'src/camera/GPhoto.vala')
-rw-r--r--src/camera/GPhoto.vala14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/camera/GPhoto.vala b/src/camera/GPhoto.vala
index 5919080..8dab941 100644
--- a/src/camera/GPhoto.vala
+++ b/src/camera/GPhoto.vala
@@ -169,20 +169,6 @@ namespace GPhoto {
raw_length = raw.length;
- // Try to make sure last two bytes are JPEG footer.
- // This is necessary because GPhoto sometimes includes a few extra bytes. See
- // Yorba bug #2905 and the following GPhoto bug:
- // http://sourceforge.net/tracker/?func=detail&aid=3141521&group_id=8874&atid=108874
- if (raw_length > 32) {
- for (size_t i = raw_length - 2; i > raw_length - 32; i--) {
- if (raw[i] == Jpeg.MARKER_PREFIX && raw[i + 1] == Jpeg.Marker.EOI) {
- debug("Adjusted length of thumbnail for: %s", filename);
- raw_length = i + 2;
- break;
- }
- }
- }
-
MemoryInputStream mins = new MemoryInputStream.from_data(raw, null);
return new Gdk.Pixbuf.from_stream_at_scale(mins, ImportPreview.MAX_SCALE, ImportPreview.MAX_SCALE, true, null);
}