tasn pushed a commit to branch master.

http://git.enlightenment.org/tools/exactness.git/commit/?id=3b0eb3b8730ce4935c73915d9bee60470aada4d7

commit 3b0eb3b8730ce4935c73915d9bee60470aada4d7
Author: Tom Hacohen <t...@stosb.com>
Date:   Sun Oct 20 11:21:12 2013 +0100

    Fixed a bug preventing it from working on some setups.
---
 src/lib/tsuite_evas_hook.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/lib/tsuite_evas_hook.c b/src/lib/tsuite_evas_hook.c
index e3e54bc..dabf41b 100644
--- a/src/lib/tsuite_evas_hook.c
+++ b/src/lib/tsuite_evas_hook.c
@@ -231,15 +231,13 @@ static int _ecore_init_count = 0;
 EAPI int
 ecore_init(void)
 {
+   Eina_Bool initing = EINA_FALSE;
    int ret;
    int (*_ecore_init)(void) =
       dlsym(RTLD_NEXT, "ecore_init");
 
    _ecore_init_count++;
 
-   ret = _ecore_init();
-   eet_init();
-
    if ((_ecore_init_count == 1) && (!_hook_setting))
      {
         const char *tmp;
@@ -257,6 +255,14 @@ ecore_init(void)
         printf("<%s> recording=<%s>\n", __func__, _hook_setting->recording);
         printf("<%s> rec file is <%s>\n", __func__, _hook_setting->file_name);
 #endif
+        initing = EINA_TRUE;
+     }
+
+   ret = _ecore_init();
+   eet_init();
+
+   if (initing)
+     {
         if (_hook_setting->recording)
           tsuite_evas_hook_init();
      }

-- 


Reply via email to