From f852243927fa803716b739cacda59000dcf92bb8 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Tue, 24 Sep 2019 12:30:41 +0900 Subject: [PATCH] mm_sound_server: fix not to nofity complete callback in case of stopping wav playback [Version] 0.12.52 [Issue Type] Bug Change-Id: I89d6c270511a1f51f8c048484dda24226c0cd43b --- packaging/libmm-sound.spec | 2 +- server/mm_sound_mgr_codec.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packaging/libmm-sound.spec b/packaging/libmm-sound.spec index 3523166..9762ad6 100644 --- a/packaging/libmm-sound.spec +++ b/packaging/libmm-sound.spec @@ -1,6 +1,6 @@ Name: libmm-sound Summary: MMSound Package contains client lib and sound_server binary -Version: 0.12.51 +Version: 0.12.52 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/server/mm_sound_mgr_codec.c b/server/mm_sound_mgr_codec.c index df5e057..1bb36f1 100644 --- a/server/mm_sound_mgr_codec.c +++ b/server/mm_sound_mgr_codec.c @@ -443,11 +443,11 @@ static int _MMSoundMgrCodecStopCallback(int param) debug_enter("(Slot : %d) stop-by-user : %d", param, g_slots[param].stop_by_user); - if (g_slots[param].stop_by_user == false) + if (!g_slots[param].stop_by_user) { SLOT_LOCK(); - - __mm_sound_mgr_ipc_notify_play_file_end(param); - debug_msg("Client callback msg_type (instance) : [%d]", (int)g_slots[param].param); + __mm_sound_mgr_ipc_notify_play_file_end(param); + debug_msg("Client callback msg_type (instance) : [%d]", (int)g_slots[param].param); + } debug_msg("Handle allocated handle : [%p]", g_slots[param].plughandle); err = g_plugins[g_slots[param].pluginid].Destroy(g_slots[param].plughandle); @@ -458,7 +458,7 @@ static int _MMSoundMgrCodecStopCallback(int param) if (_mm_sound_mgr_codec_slot_is_empty()) _mm_sound_mgr_codec_shutdown_timer_start(); - if (g_slots[param].stop_by_user == false) + if (!g_slots[param].stop_by_user) SLOT_UNLOCK(); debug_fleave(); -- 2.7.4