Add file name checker and Fix dbus type and bt return
[platform/core/uifw/stt.git] / server / sttd_recorder.c
index 387308c..7d0f190 100755 (executable)
@@ -595,7 +595,7 @@ int sttd_recorder_stop()
 
        g_recorder->uid = -1;
 
-       int ret;
+       int ret = -1;
 #ifndef TV_BT_MODE
        ret = audio_in_unprepare(g_recorder->audio_h);
        if (AUDIO_IO_ERROR_NONE != ret) {
@@ -615,12 +615,13 @@ int sttd_recorder_stop()
                        usleep(50000);
                        bt_retry++;
                } else {
+                       SLOG(LOG_ERROR, TAG_STTD, "[Recorder ERROR] bt_hid_rc_stop_sending_voice(): ret(%d)", ret);
                        break;
                }
        }
        if (false == stopped) {
-               SLOG(LOG_ERROR, TAG_STTD, "[Recorder ERROR] Fail to stop bt audio");
-               return STTD_ERROR_OPERATION_FAILED;
+               SLOG(LOG_ERROR, TAG_STTD, "[Recorder ERROR] Fail to stop bt audio(%d)", ret);
+//             return STTD_ERROR_OPERATION_FAILED;
        }
 #endif