commit 40c398d9423923888d8c3868436723d60ea9cae2
Author: Christophe Fergeau <[email protected]>
Date: Tue Oct 20 00:29:33 2009 +0200
fix parsing of iPhone SysInfoExtended
There were warnings while parsing the artwork formats since they are in a
slightly different format as what we expect
src/itdb_sysinfo_extended_parser.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/itdb_sysinfo_extended_parser.c
b/src/itdb_sysinfo_extended_parser.c
index f761212..2097a89 100644
--- a/src/itdb_sysinfo_extended_parser.c
+++ b/src/itdb_sysinfo_extended_parser.c
@@ -468,6 +468,12 @@ static GList *parse_one_formats_list (GHashTable
*sysinfo_dict,
array = (GValueArray*)g_value_get_boxed (to_parse);
for (i = 0; i < array->n_values; i++) {
Itdb_ArtworkFormat *format;
+ /* SysInfoExtended on the iPhone has <string> fields in the artwork
+ * format array in addition to the hash we parse
+ */
+ if (!G_VALUE_HOLDS (g_value_array_get_nth (array, i),
G_TYPE_HASH_TABLE)) {
+ continue;
+ }
format = g_value_to_image_format (g_value_array_get_nth (array, i));
if (format != NULL) {
formats = g_list_prepend (formats, format);
------------------------------------------------------------------------------
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