if (!available) {
struct appdata *ad = user_data;
+ MP_CHECK(ad);
mp_player_mgr_pause(ad);
}
EVENT_TRACE("input=[0x%x], output=[0x%x]", in, out);
MP_CHECK(gNotiPipe);
+ struct appdata *ad = user_data;
+ MP_CHECK(ad);
+
+ int current_pid = mp_setting_get_nowplaying_id();
+ if (current_pid && current_pid != getpid()) {
+ DEBUG_TRACE("Some other player playing currently");
+ ad->paused_by_user = true;
+ if (ad->win_minicon) {
+ mp_minicontroller_hide(ad);
+ }
+ if (ad->win_lockmini) {
+ mp_lockscreenmini_hide(ad);
+ }
+ }
+
mp_app_pipe_data_s pipe_data;
memset(&pipe_data, 0, sizeof(mp_app_pipe_data_s));
pipe_data.type = MP_APP_PIPE_CB_ACTIVE_DEVICE_CHANGED;
if (state_for_playback == SOUND_STREAM_FOCUS_STATE_RELEASED) {
mp_player_mgr_pause(ad);
- int current_pid = mp_setting_get_nowplaying_id();
- if (current_pid && current_pid != getpid()) {
- DEBUG_TRACE("Some other player playing currently");
- ad->paused_by_user = true;
- if (ad->win_minicon) {
- mp_minicontroller_hide(ad);
- }
- if (ad->win_lockmini) {
- mp_lockscreenmini_hide(ad);
- }
- }
-
sound_manager_get_focus_reacquisition(ad->stream_info, &reacquire_state);
DEBUG_TRACE("reason for change is %d", reason_for_change);
if (reason_for_change == SOUND_STREAM_FOCUS_CHANGED_BY_VOIP ||
DEBUG_TRACE("angle: 90 or 270");
ad->minicontroller_layout = _load_edj(ad->win_minicon, MINICON_EDJ_NAME, "music-minicontroller-ld");
} else {
- DEBUG_TRACE("angel: 0");
+ DEBUG_TRACE("angle: 0");
ad->minicontroller_layout = _load_edj(ad->win_minicon, MINICON_EDJ_NAME, "music-minicontroller");
}