static void __audio_streaming_cb(mas_speech_streaming_event_e event, void* buffer, int len, void *user_data)
{
+ CServicePlugin* plugin = static_cast<CServicePlugin*>(user_data);
+
if (event == MAS_SPEECH_STREAMING_EVENT_FAIL) {
- ecore_main_loop_thread_safe_call_async(handle_speech_streaming_event_failure, NULL);
+ AsyncParam* param = new(std::nothrow) AsyncParam;
+ if (param) {
+ param->plugin = plugin;
+ ecore_main_loop_thread_safe_call_async(
+ handle_speech_streaming_event_failure, static_cast<void*>(param));
+ }
return;
}
static int count = 0;
}
++count;
- CServicePlugin* plugin = static_cast<CServicePlugin*>(user_data);
CServiceIpcDbus* service_ipc = nullptr;
CServiceMain* service_main = nullptr;
if (plugin) {