Currently disable to fix BS issue in setting->accounts->dropbox
authorprince <prince.dubey@samsung.com>
Mon, 25 Feb 2013 12:29:44 +0000 (17:59 +0530)
committerprince <prince.dubey@samsung.com>
Mon, 25 Feb 2013 12:29:44 +0000 (17:59 +0530)
Change-Id: I74494e7a584dad5c405637471e6be266a9fd59f4

src/tizen_sound_player/tizen_sound_player.c

index e034379..d4bf12e 100644 (file)
@@ -345,18 +345,6 @@ _remix_mm_handle_close(void *data)
    return ECORE_CALLBACK_CANCEL;
 }
 
-static void *
-remix_player_timer_add(void *data)
-{
-   RemixPlayerData *player_data = data;
-
-   if (player_data->timeout) ecore_timer_del(player_data->timeout);
-   player_data->timeout = ecore_timer_add(TIMEOUT_FOR_MM_HANDLER,
-                                          _remix_mm_handle_close, player_data);
-
-   return NULL;
-}
-
 static int
 remix_player_flush (RemixEnv *env, RemixBase *base)
 {
@@ -364,10 +352,9 @@ remix_player_flush (RemixEnv *env, RemixBase *base)
 
    if (!player_data) return;
 
-   //ecore timer is not thread safe, must be called in main thread
-   //the below call should not be blocking
-   ecore_main_loop_thread_safe_call_async
-                   (remix_player_timer_add, player_data);
+   if (player_data->timeout) ecore_timer_del(player_data->timeout);
+   player_data->timeout = ecore_timer_add(TIMEOUT_FOR_MM_HANDLER,
+                                          _remix_mm_handle_close, player_data);
 
    if (player_data->handle) return 0;