diff options
author | Eunhae Choi <eunhae1.choi@samsung.com> | 2017-02-09 14:53:04 +0900 |
---|---|---|
committer | Eunhae Choi <eunhae1.choi@samsung.com> | 2017-02-09 14:53:37 +0900 |
commit | 78ba3c813c77c7a561a911e04850801510ed1112 (patch) | |
tree | 93553acbf40241625d099a015028771149980d63 | |
parent | ab8d43e4601690f56d659a911960948447e793d9 (diff) | |
download | libmm-player-78ba3c813c77c7a561a911e04850801510ed1112.tar.gz libmm-player-78ba3c813c77c7a561a911e04850801510ed1112.tar.bz2 libmm-player-78ba3c813c77c7a561a911e04850801510ed1112.zip |
[0.6.30] register the device connected cb only in case of media stream typesubmit/tizen/20170210.083202accepted/tizen/wearable/20170214.010709accepted/tizen/tv/20170214.010630accepted/tizen/mobile/20170214.010537accepted/tizen/ivi/20170214.010747accepted/tizen/common/20170210.170636
- this is for backward compatibility
Change-Id: I581b32df941528cc3b4ed466276c5b299773f880
-rw-r--r-- | src/mm_player_sound_focus.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |