From 20ab952efd55f9893b28a25c275cdb9a8dca3a45 Mon Sep 17 00:00:00 2001 From: prince Date: Mon, 25 Feb 2013 17:59:44 +0530 Subject: [PATCH] Currently disable to fix BS issue in setting->accounts->dropbox Change-Id: I74494e7a584dad5c405637471e6be266a9fd59f4 --- src/tizen_sound_player/tizen_sound_player.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/tizen_sound_player/tizen_sound_player.c b/src/tizen_sound_player/tizen_sound_player.c index e034379..d4bf12e 100644 --- a/src/tizen_sound_player/tizen_sound_player.c +++ b/src/tizen_sound_player/tizen_sound_player.c @@ -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; -- 2.7.4