From: Sangchul Lee Date: Fri, 23 Sep 2022 06:16:06 +0000 (+0900) Subject: Remove sound-manager deprecated API X-Git-Tag: tizen_7.0_src.m2_release^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0_hotfix;p=profile%2Fiot%2Fapps%2Fnative%2Fvideo-player.git Remove sound-manager deprecated API Previously, no callback funcion pointer was passed to sound_manager_add_device_state_changed_cb(). So, these are just removed now. Change-Id: I4232241e9e65ad12ae5a0d37892d34c80a643209 Signed-off-by: Sangchul Lee --- diff --git a/playview/src/core/vp-sound.c b/playview/src/core/vp-sound.c index f4cea46..d63305f 100755 --- a/playview/src/core/vp-sound.c +++ b/playview/src/core/vp-sound.c @@ -447,18 +447,6 @@ bool vp_sound_set_active_route(video_sound_device_type_t nDeviceType) bool vp_sound_set_route_change_cb(vp_sound_route_change_cb func, void *pUserData) { - int nRet = SOUND_MANAGER_ERROR_NONE; - - PlayView *pPlayView = (PlayView *)pUserData; - sound_device_mask_e g_device_mask = SOUND_DEVICE_IO_DIRECTION_OUT_MASK; - - nRet = - sound_manager_add_device_state_changed_cb(g_device_mask, - NULL, pPlayView, &pPlayView->device_state_id); - if (nRet != SOUND_MANAGER_ERROR_NONE) { - VideoLogError("sound_manager_set_available_route_changed_cb fail"); - return FALSE; - } return TRUE; } diff --git a/playview/src/view/include/vp-play-view-priv.h b/playview/src/view/include/vp-play-view-priv.h index 756159c..6c4f959 100755 --- a/playview/src/view/include/vp-play-view-priv.h +++ b/playview/src/view/include/vp-play-view-priv.h @@ -175,6 +175,5 @@ typedef struct _PlayView { bool isLiveStreaming; app_control_h pServiceShare; - int device_state_id; int volume_changed_cb_id; } PlayView; diff --git a/playview/src/vp-play-view.c b/playview/src/vp-play-view.c index a7e7806..eda6888 100755 --- a/playview/src/vp-play-view.c +++ b/playview/src/vp-play-view.c @@ -2208,11 +2208,6 @@ bool vp_play_view_unrealize(play_view_handle pViewHandle) } } - error = sound_manager_remove_device_state_changed_cb(pPlayView->device_state_id); - if (error != SOUND_MANAGER_ERROR_NONE) { - VideoLogError("Cannot remove device state changed callback"); - } - media_key_release(); int nDuration = 0; if (vp_play_normal_view_get_video_duration