Removed the variable 'credential' which is passed to __wait_synthesis() 35/317935/1
authordyamy-lee <dyamy.lee@samsung.com>
Thu, 19 Sep 2024 10:56:39 +0000 (19:56 +0900)
committerdyamy-lee <dyamy.lee@samsung.com>
Thu, 19 Sep 2024 10:56:39 +0000 (19:56 +0900)
This patch removed passing 'credential' to __wait_synthesis() function, because it is not used in there.

Change-Id: I56b108d1709d8642e50465ad1ca11ff21666d43f

server/ttsd_server.c

index 494d47c..122fe9a 100644 (file)
@@ -179,7 +179,7 @@ static void __synthesis(unsigned int uid)
        if (speak_data->is_silent) {
                ttsd_data_set_synth_control(TTSD_SYNTHESIS_CONTROL_DOING);
                if (__generate_silent(speak_data->duration_in_msec)) {
-                       g_wait_timer = ecore_timer_add(0.05, __wait_synthesis, (void*)credential);
+                       g_wait_timer = ecore_timer_add(0.05, __wait_synthesis, NULL);
                } else {
                        SLOG(LOG_ERROR, tts_tag(), "[Server ERROR] * FAIL to make GENERATE silent !!!! * ");
 
@@ -226,7 +226,7 @@ static void __synthesis(unsigned int uid)
                        ttsd_data_set_synth_control(TTSD_SYNTHESIS_CONTROL_DONE);
                        __stop_and_send_ready_state(uid);
                } else {
-                       g_wait_timer = ecore_timer_add(0.05, __wait_synthesis, (void*)credential);
+                       g_wait_timer = ecore_timer_add(0.05, __wait_synthesis, NULL);
                }
 
                if (ttsd_data_get_synth_control() == TTSD_SYNTHESIS_CONTROL_DOING && ttsd_state_get_state() == TTSD_STATE_READY) {