summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEunhae Choi <eunhae1.choi@samsung.com>2017-02-09 14:53:04 +0900
committerEunhae Choi <eunhae1.choi@samsung.com>2017-02-09 16:26:35 +0900
commitede1d63d5715c31bd806fec8f5a2575d7ea24ae9 (patch)
treec4aedaed0797b827a3ce6e53b6588eb49d40b826
parenta1cd2a68da527366d6e5ed5f17818181dbe6f133 (diff)
downloadlibmm-player-ede1d63d5715c31bd806fec8f5a2575d7ea24ae9.tar.gz
libmm-player-ede1d63d5715c31bd806fec8f5a2575d7ea24ae9.tar.bz2
libmm-player-ede1d63d5715c31bd806fec8f5a2575d7ea24ae9.zip
[0.6.30] register the device connected cb only in case of media stream type
- this is for backward compatibility Change-Id: I581b32df941528cc3b4ed466276c5b299773f880
-rw-r--r--src/mm_player_sound_focus.c4
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
+}