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>
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;
}
bool isLiveStreaming;
app_control_h pServiceShare;
- int device_state_id;
int volume_changed_cb_id;
} PlayView;
}
}
- 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