emotion: override engine by setting EMOTION_ENGINE environ.
authorcedric <cedric>
Fri, 25 Feb 2011 11:33:19 +0000 (11:33 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 25 Feb 2011 11:33:19 +0000 (11:33 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@57320 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/emotion_smart.c

index 87f8929..ad141db 100644 (file)
@@ -187,6 +187,9 @@ _emotion_module_open(const char *name, Evas_Object *obj, Emotion_Video_Module **
        return NULL;
      }
 
+   if (!name && getenv("EMOTION_ENGINE"))
+     name = getenv("EMOTION_ENGINE");
+
    /* FIXME: Always look for a working backend. */
  retry:
    if (!name || index > 0)