Fixed TSAM-10051 Music resumes when timer active of video recorder 89/98989/1
authorbhutani.92 <bhutani.92@samsung.com>
Mon, 21 Nov 2016 10:34:39 +0000 (16:04 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Mon, 21 Nov 2016 10:34:39 +0000 (16:04 +0530)
Change-Id: I8531578db7b5de4f2af6c4ecd785c248e5d81d27
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
src/widget/mp-minicontroller.c

index 6bb3e22f1ba949a834b58ba0bc96fe49634b19db..ce0f06abfd44b5b38e8fea021a5b66cef9cd4bb4 100755 (executable)
@@ -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");