Commit d785b0a8 authored by W. Michael Petullo's avatar W. Michael Petullo

Fix use of g_list_sort.* by _dmap_share_databases and dacp_share_ctrl_int

Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent 6a151b4f
......@@ -882,7 +882,7 @@ dacp_share_ctrl_int (DMAPShare *share,
sorted_records = g_hash_table_get_values (records);
sort_by = g_hash_table_lookup (query, "sort");
if (g_strcmp0 (sort_by, "album") == 0) {
sorted_records = g_list_sort (sorted_records, (GCompareFunc) daap_record_cmp_by_album);
sorted_records = g_list_sort_with_data (sorted_records, (GCompareDataFunc) daap_record_cmp_by_album, db);
} else if (sort_by != NULL) {
g_warning ("Unknown sort column: %s", sort_by);
}
......
......@@ -1714,7 +1714,7 @@ _dmap_share_databases (DMAPShare *share,
sort_by = g_hash_table_lookup (query, "sort");
keys = g_hash_table_get_keys (records);
if (g_strcmp0 (sort_by, "album") == 0) {
keys = g_list_sort_with_data (keys, (GCompareDataFunc) daap_record_cmp_by_album, records);
keys = g_list_sort_with_data (keys, (GCompareDataFunc) daap_record_cmp_by_album, share->priv->db);
} else if (sort_by != NULL) {
g_warning ("Unknown sort column: %s", sort_by);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment