Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 565052
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +5 lines)
Line  Link Here
0
-- src/itdb_itunesdb.c
0
++ src/itdb_itunesdb.c
Lines 1156-1161 static gboolean playcounts_plist_read (FImport *fimp, GValue *plist_data) Link Here
1156
    GHashTable *pc_dict, *track_dict;
1156
    GHashTable *pc_dict, *track_dict;
1157
    GValue *to_parse;
1157
    GValue *to_parse;
1158
    GArray *array;
1158
    GArray *array;
1159
    GValue value;
1159
    gint i;
1160
    gint i;
1160
    guint32 mac_time;
1161
    guint32 mac_time;
1161
    guint64 *dbid;
1162
    guint64 *dbid;
Lines 1174-1186 static gboolean playcounts_plist_read (FImport *fimp, GValue *plist_data) Link Here
1174
    playcounts = g_hash_table_new_full (g_int64_hash, g_int64_equal, g_free, g_free);
1175
    playcounts = g_hash_table_new_full (g_int64_hash, g_int64_equal, g_free, g_free);
1175
    array = (GArray*)g_value_get_boxed (to_parse);
1176
    array = (GArray*)g_value_get_boxed (to_parse);
1176
    for (i = 0; i < array->len; i++) {
1177
    for (i = 0; i < array->len; i++) {
1177
       if (!G_VALUE_HOLDS (g_array_index (array, GValue *, i), G_TYPE_HASH_TABLE)) {
1178
       value = g_array_index (array, GValue, i);
1179
       if (!G_VALUE_HOLDS (&value, G_TYPE_HASH_TABLE)) {
1178
          continue;
1180
          continue;
1179
       }
1181
       }
1180
       track_dict = g_value_get_boxed (g_array_index (array, GValue *, i));
1182
       track_dict = g_value_get_boxed (&value);
1181
       if (track_dict == NULL)
1183
       if (track_dict == NULL)
1182
           continue;
1184
           continue;
1183
1185
1184
       to_parse = g_hash_table_lookup (track_dict, "persistentID");
1186
       to_parse = g_hash_table_lookup (track_dict, "persistentID");

Return to bug 565052