[f-spot] Fix errors during import, GIO streams don't know their length.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Fix errors during import, GIO streams don't know their length.
- Date: Wed, 9 Jun 2010 22:23:57 +0000 (UTC)
commit 064f5a12777f373ced4404332b8d025a7bc42b30
Author: Ruben Vermeersch <ruben savanne be>
Date: Thu Jun 10 00:13:20 2010 +0200
Fix errors during import, GIO streams don't know their length.
Might break on some broken files. Will be solved by moving to Taglib#.
src/Imaging/JpegHeader.cs | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/Imaging/JpegHeader.cs b/src/Imaging/JpegHeader.cs
index 422603c..ef172b1 100644
--- a/src/Imaging/JpegHeader.cs
+++ b/src/Imaging/JpegHeader.cs
@@ -191,9 +191,6 @@ public class JpegHeader : SemWeb.StatementSource {
byte [] raw = new byte [2];
ushort length;
- if (stream.Length - stream.Position < 2)
- return null;
-
// FIXME there is a potential loop here.
int read = Read (stream, raw, 0, 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]