diff options
author | Sangchul Lee <sc11.lee@samsung.com> | 2022-09-23 15:16:06 +0900 |
---|---|---|
committer | Sangchul Lee <sc11.lee@samsung.com> | 2022-09-23 15:26:52 +0900 |
commit | 6258e4f9c271404da55e2d17265bb50cad685231 (patch) | |
tree | 353c7fd670f063d127e4a69ee28cd658a9e2e747 | |
parent | 95924161efb2488a103852aa3b0f49a171ce8c7e (diff) | |
download | video-player-tizen_7.0_hotfix.tar.gz video-player-tizen_7.0_hotfix.tar.bz2 video-player-tizen_7.0_hotfix.zip |
Remove sound-manager deprecated APItizen_8.0_m2_releasetizen_7.0_src.m2_releasetizen_8.0tizen_7.0_hotfixtizen_7.0
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 <sc11.lee@samsung.com>
-rwxr-xr-x | playview/src/core/vp-sound.c | 12 | ||||
-rwxr-xr-x | playview/src/view/include/vp-play-view-priv.h | 1 | ||||
-rwxr-xr-x | playview/src/vp-play-view.c | 5 |
3 files changed, 0 insertions, 18 deletions
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 |