From: Eunhae Choi Date: Thu, 9 Feb 2017 05:53:04 +0000 (+0900) Subject: [0.6.30] register the device connected cb only in case of media stream type X-Git-Tag: accepted/tizen/3.0/common/20170215.121310~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ede1d63d5715c31bd806fec8f5a2575d7ea24ae9;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git [0.6.30] register the device connected cb only in case of media stream type - this is for backward compatibility Change-Id: I581b32df941528cc3b4ed466276c5b299773f880 --- diff --git a/src/mm_player_sound_focus.c b/src/mm_player_sound_focus.c index 73548eb..63f24ff 100644 --- a/src/mm_player_sound_focus.c +++ b/src/mm_player_sound_focus.c @@ -307,7 +307,7 @@ _mmplayer_sound_register(MMPlayerSoundFocus* sound_focus, } } - if (sound_focus->connected_id == 0) { + if ((strstr(stream_type, "media")) && (sound_focus->connected_id == 0)) { /* register device connected callback */ ret = mm_sound_add_device_connected_callback(MM_SOUND_DEVICE_TYPE_EXTERNAL_FLAG, (mm_sound_device_connected_cb)__mmplayer_sound_device_connected_cb_func, (void*)param, &sound_focus->connected_id); @@ -393,4 +393,4 @@ bool _mmplayer_is_using_internal_sound_focus(MMPlayerSoundFocus* sound_focus) return true; else return false; -} \ No newline at end of file +}