summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xplayview/src/core/vp-sound.c12
-rwxr-xr-xplayview/src/view/include/vp-play-view-priv.h1
-rwxr-xr-xplayview/src/vp-play-view.c5
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