Fixed a bug preventing it from working on some setups.

This commit is contained in:
Tom Hacohen 2013-10-20 11:21:12 +01:00
parent 37655cbab1
commit 3b0eb3b873
1 changed files with 9 additions and 3 deletions

View File

@ -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();
}