mm_sound_server: fix not to nofity complete callback in case of stopping wav playback 51/214551/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.022817 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084622 accepted/tizen/unified/20190926.065714 submit/tizen/20190925.044646 submit/tizen/20190925.121113 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 24 Sep 2019 03:30:41 +0000 (12:30 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 24 Sep 2019 03:30:41 +0000 (12:30 +0900)
[Version] 0.12.52
[Issue Type] Bug

Change-Id: I89d6c270511a1f51f8c048484dda24226c0cd43b

packaging/libmm-sound.spec
server/mm_sound_mgr_codec.c

index 3523166..9762ad6 100644 (file)
@@ -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
index df5e057..1bb36f1 100644 (file)
@@ -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();