Remove sound-manager deprecated API 13/281913/1 tizen tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_7.0_src.m2_release tizen_8.0_m2_release
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 23 Sep 2022 06:32:28 +0000 (15:32 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 23 Sep 2022 06:33:13 +0000 (15:33 +0900)
Previously, no callback funcion pointer was passed to
sound_manager_add_device_state_changed_cb().

So, these are just removed now.

Change-Id: Idc5dd5822c6f1f15c9855b2a5fb47f50df4b8e93
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
playview/src/core/vp-sound.c
playview/src/view/include/vp-play-view-priv.h
playview/src/vp-play-view.c

index fbf38df..f52dafb 100644 (file)
@@ -423,18 +423,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;
 }
 
index ad432e3..4cf709a 100644 (file)
@@ -174,6 +174,5 @@ typedef struct _PlayView {
        bool isLiveStreaming;
        app_control_h pServiceShare;
 
-       int device_state_id;
        int volume_changed_cb_id;
 } PlayView;
index d52c489..0eaaad8 100644 (file)
@@ -2202,11 +2202,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