[grilo] core: Fix incorrect sorting of ranked plugins.
- From: Iago Toral Quiroga <itoral src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] core: Fix incorrect sorting of ranked plugins.
- Date: Thu, 16 Sep 2010 06:47:30 +0000 (UTC)
commit a8f314fdbd9b3196b8a1e89e13da1a686ac3548c
Author: Iago Toral Quiroga <itoral igalia com>
Date: Thu Sep 16 08:45:52 2010 +0200
core: Fix incorrect sorting of ranked plugins.
src/grl-plugin-registry.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index 238e337..eb91293 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -209,7 +209,7 @@ compare_by_rank (gconstpointer a,
rank_a = grl_media_plugin_get_rank (GRL_MEDIA_PLUGIN (a));
rank_b = grl_media_plugin_get_rank (GRL_MEDIA_PLUGIN (b));
- return (rank_a > rank_b) - (rank_a < rank_b);
+ return (rank_a < rank_b) - (rank_a > rank_b);
}
static GHashTable *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]