diff options
-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 +} |