cedric pushed a commit to branch master.

commit 6c1833246ca23e7d07b8580e0a5978758c16fef8
Author: Cedric Bail <[email protected]>
Date:   Wed Jul 31 18:42:13 2013 +0900

    emotion: fix backend order.
---
 ChangeLog                         | 1 +
 NEWS                              | 1 +
 src/lib/emotion/emotion_modules.c | 6 +++---
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2762dad..40ff74b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
 
        * Eina: add eina_file_refresh(), eina_file_virtualize() and 
eina_file_virtual().
        * Evas: use eina_file_virtualize() for evas_object_image_memfile_set().
+       * Emotion: fix backend priority order.
 
 2013-07-25  ChunEon Park (Hermet)
 
diff --git a/NEWS b/NEWS
index 39b5d59..776442f 100644
--- a/NEWS
+++ b/NEWS
@@ -395,6 +395,7 @@ Fixes:
      - Fix desktop command parsing of https.
     * Emotion:
      - Fix memory leak in gstreamer_ecore_x_check.
+     - Fix backend priority order.
     * Ethumb:
      - Fix memory leak in error case.
     * Eeze:
diff --git a/src/lib/emotion/emotion_modules.c 
b/src/lib/emotion/emotion_modules.c
index f971c01..1ba3c10 100644
--- a/src/lib/emotion/emotion_modules.c
+++ b/src/lib/emotion/emotion_modules.c
@@ -37,14 +37,14 @@ static int
 _emotion_engine_registry_entry_cmp(const void *pa, const void *pb)
 {
    const Emotion_Engine_Registry_Entry *a = pa, *b = pb;
-   int r = a->priority - b->priority;
+   int r = b->priority - a->priority;
 
    if (r == 0)
-     r = a->engine->priority - b->engine->priority;
+     r = b->engine->priority - a->engine->priority;
 
    if (r == 0)
      /* guarantee some order to ease debug */
-     r = strcmp(a->engine->name, b->engine->name);
+     r = strcmp(b->engine->name, a->engine->name);
 
    return r;
 }

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk

Reply via email to