[libdmapsharing] Fix use of g_list_sort.* by _dmap_share_databases and dacp_share_ctrl_int Signed-off-by: W. Michael
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Fix use of g_list_sort.* by _dmap_share_databases and dacp_share_ctrl_int Signed-off-by: W. Michael
- Date: Mon, 18 Oct 2010 20:45:16 +0000 (UTC)
commit d785b0a81a1576341dc3f100d49e3115b8ba32ec
Author: W. Michael Petullo <mike flyn org>
Date: Mon Oct 18 15:41:44 2010 -0500
Fix use of g_list_sort.* by _dmap_share_databases and dacp_share_ctrl_int
Signed-off-by: W. Michael Petullo <mike flyn org>
libdmapsharing/dacp-share.c | 2 +-
libdmapsharing/dmap-share.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libdmapsharing/dacp-share.c b/libdmapsharing/dacp-share.c
index 16579e9..05c1b0b 100644
--- a/libdmapsharing/dacp-share.c
+++ b/libdmapsharing/dacp-share.c
@@ -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);
}
diff --git a/libdmapsharing/dmap-share.c b/libdmapsharing/dmap-share.c
index 49f5c7b..1c714df 100644
--- a/libdmapsharing/dmap-share.c
+++ b/libdmapsharing/dmap-share.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]