Fix device connected cb not invoke issue after call terminated 02/75202/1 accepted/tizen/common/20160617.121906 accepted/tizen/ivi/20160620.024923 accepted/tizen/mobile/20160620.024828 submit/tizen/20160617.080634
authorWootak Jung <wootak.jung@samsung.com>
Fri, 17 Jun 2016 05:11:56 +0000 (14:11 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Fri, 17 Jun 2016 05:11:56 +0000 (14:11 +0900)
Change-Id: I06ac054ca1305e481992a6e2e6d076f87526baa4

module/src/callmgr-audio.c
packaging/call-manager.spec

index 5b3f8cd..c5651a4 100644 (file)
@@ -158,7 +158,7 @@ int _callmgr_audio_init(callmgr_audio_handle_h *audio_handle, audio_event_cb cb_
                return -1;
        }
 
-       /* Set current device */
+       /* Set current device list */
        while (sound_manager_get_next_device(device_list, &device) == SOUND_MANAGER_ERROR_NONE) {
                sound_manager_get_device_type(device, &device_type);
                if (device_type == SOUND_DEVICE_AUDIO_JACK)
@@ -185,6 +185,7 @@ int _callmgr_audio_deinit(callmgr_audio_handle_h audio_handle)
 
        /* TODO: Release all handles */
 
+       sound_manager_unset_device_connected_cb();
        _callmgr_audio_destroy_call_sound_session(audio_handle);
        g_free(audio_handle);
 
@@ -351,7 +352,6 @@ int _callmgr_audio_destroy_call_sound_session(callmgr_audio_handle_h audio_handl
        CM_RETURN_VAL_IF_FAIL(audio_handle->sound_stream_handle, -1);
 
        sound_manager_unset_volume_changed_cb();
-       sound_manager_unset_device_connected_cb();
        sound_manager_unset_device_information_changed_cb();
 
        ret = sound_manager_release_focus(audio_handle->sound_stream_handle, SOUND_STREAM_FOCUS_FOR_PLAYBACK|SOUND_STREAM_FOCUS_FOR_RECORDING, NULL);
index 85872d4..492a4cb 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 1
-%define patchlevel 69
+%define patchlevel 70
 %define ext_feature 0
 
 Name:           call-manager