commit 0c2c9062bf242474f30e206669ccabd3c3be3131
Author: Christophe Fergeau <[email protected]>
Date:   Thu Oct 22 23:39:32 2009 +0200

    only try to generate HashInfo on devices needing it
    
    The HashInfo file is only needed on newer devices (iPhones, iTouches
    and Nano5G)

 src/itdb_hash72.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/itdb_hash72.c b/src/itdb_hash72.c
index bcc0d7d..050f503 100644
--- a/src/itdb_hash72.c
+++ b/src/itdb_hash72.c
@@ -275,6 +275,10 @@ gboolean itdb_hash72_extract_hash_info (const Itdb_Device 
*device,
     int iv_extracted;
     struct Hash78Info *hash_info;
 
+    if (itdb_device_get_checksum_type (device) != ITDB_CHECKSUM_HASH72) {
+           /* No need to generate a HashInfo file */
+           return FALSE;
+    }
     if (itdb_len < 0x6c) {
        return FALSE;
     }

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to