[Version] 0.12.51
[Issue Type] Crash
Change-Id: Ia58555507d775426dd1b4633e296f57c4635af2f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
-Version: 0.12.50
+Version: 0.12.51
Release: 0
Group: System/Libraries
License: Apache-2.0
debug_fenter();
+ if (!pluginlist)
+ return MM_ERROR_NONE;
+
while (pluginlist[loop].type != MM_SOUND_PLUGIN_TYPE_NONE)
MMSoundPluginClose(&pluginlist[loop++]);
if (serveropt.startserver || serveropt.printlist) {
MMSoundMgrDbusInit();
- MMSoundThreadPoolInit();
+ if (MMSoundThreadPoolInit()) {
+ debug_error("failed to MMSoundThreadPoolInit()");
+ goto exit;
+ }
MMSoundMgrCodecInit(serveropt.plugdir, _shutdown_cb);
}
_mainloop_run();
}
+exit:
debug_warning("sound_server [%d] terminating ", getpid());
if (serveropt.startserver || serveropt.printlist) {
his dummy thread will be remained unused as soon as it started */
debug_msg("run threads to reserve minimum thread");
for (i = 0; i < MAX_UNUSED_THREADS_IN_THREADPOOL; i++)
- MMSoundThreadPoolRun((void *)i, __DummyWork);
+ if (MMSoundThreadPoolRun((void *)i, __DummyWork))
+ return MM_ERROR_SOUND_INTERNAL;
MMSoundThreadPoolDump(TRUE);