From: bhutani.92 Date: Mon, 21 Nov 2016 10:34:39 +0000 (+0530) Subject: Fixed TSAM-10051 Music resumes when timer active of video recorder X-Git-Tag: submit/tizen_3.0/20161123.134611~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66f04afcd063c2858598bd10fbc741601663ba59;p=profile%2Fmobile%2Fapps%2Fnative%2Fmusic-player.git Fixed TSAM-10051 Music resumes when timer active of video recorder Change-Id: I8531578db7b5de4f2af6c4ecd785c248e5d81d27 Signed-off-by: bhutani.92 --- diff --git a/src/widget/mp-minicontroller.c b/src/widget/mp-minicontroller.c index 6bb3e22..ce0f06a 100755 --- a/src/widget/mp-minicontroller.c +++ b/src/widget/mp-minicontroller.c @@ -655,6 +655,11 @@ int _mp_is_current_focus_available(struct appdata *ad) ERROR_TRACE("Cannot determine current recording focus"); } + if (!g_strcmp0(additional_info, "video_recorder")) { + DEBUG_TRACE("Video Recorder Timer is active. Cannot resume Music Player"); + return -1; + } + DEBUG_TRACE("Recorder state changed by : %d", changed_by); if (changed_by == SOUND_STREAM_FOCUS_CHANGED_BY_VOICE_RECOGNITION) { DEBUG_TRACE("Cannot resume Music Player. Speak Mode is on");