int vcd_recorder_destroy()
{
ma_ap_deinitialize();
+ int ret = -1;
if (VCD_RECORDER_STATE_RECORDING == g_recorder_state) {
if (0 == strncmp(VCE_AUDIO_ID_BLUETOOTH, g_current_audio_type, strlen(VCE_AUDIO_ID_BLUETOOTH))) {
#ifdef TV_BT_MODE
UnRegisterMSFAudioCallback();
#endif
} else {
- audio_in_unprepare(g_audio_h);
+ ret = audio_in_unprepare(g_audio_h);
+ if (AUDIO_IO_ERROR_NONE != ret) {
+ SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to unprepare audio : %d", ret);
+ }
}
g_recorder_state = VCD_RECORDER_STATE_READY;
}
- int ret = sound_manager_remove_device_connection_changed_cb(g_device_id);
+ ret = sound_manager_remove_device_connection_changed_cb(g_device_id);
if (0 != ret)
SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to remove device connection changed callback, ret(%d)", ret);
g_device_id = -1;