SOURCES: gnomad2-2.8.9.patch (NEW) - from http://glenstorm.beyondt...

glen glen at pld-linux.org
Mon Feb 5 09:08:19 CET 2007


Author: glen                         Date: Mon Feb  5 08:08:19 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- from http://glenstorm.beyondthelamppost.net/2007/01/02/zen-fanboi/

---- Files affected:
SOURCES:
   gnomad2-2.8.9.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gnomad2-2.8.9.patch
diff -u /dev/null SOURCES/gnomad2-2.8.9.patch:1.1
--- /dev/null	Mon Feb  5 09:08:19 2007
+++ SOURCES/gnomad2-2.8.9.patch	Mon Feb  5 09:08:14 2007
@@ -0,0 +1,22 @@
+--- gnomad2-2.8.9-orig/src/jukebox.c	2006-09-21 14:51:05.000000000 +0800
++++ gnomad2-2.8.9/src/jukebox.c	2006-12-31 01:54:41.000000000 +0800
+@@ -1234,8 +1234,17 @@
+     gchar *desc;
+     gchar *label;
+ 
+-    ret = LIBMTP_Get_Storageinfo(mtpdevice, &totalbytes, &freebytes, &desc, &label);
+-    if (ret != 0) {
++//    ret = LIBMTP_Get_Storageinfo(mtpdevice, &totalbytes, &freebytes, &desc, &label);
++    ret = LIBMTP_Get_Storage(mtpdevice, LIBMTP_STORAGE_SORTBY_NOTSORTED);
++    
++    if (ret == 0) {
++        totalbytes = mtpdevice->storage->MaxCapacity;
++        freebytes = mtpdevice->storage->FreeSpaceInBytes;
++
++        // These are not used right now.
++        desc = NULL;
++        label = NULL;
++    } else {
+       totalbytes = 0;
+       freebytes = 0;
+     }
================================================================


More information about the pld-cvs-commit mailing list