projects
/
platform
/
core
/
multimedia
/
libmm-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d694be
)
[0.6.182] check cb id before remove request
90/203490/1
accepted/tizen/unified/20190416.071454
submit/tizen/20190415.073034
author
Eunhye Choi
<eunhae1.choi@samsung.com>
Mon, 15 Apr 2019 07:25:12 +0000
(16:25 +0900)
committer
Eunhye Choi
<eunhae1.choi@samsung.com>
Mon, 15 Apr 2019 07:25:46 +0000
(16:25 +0900)
Change-Id: I015f17d7ae8253b47923631a4045522917e201d0
src/mm_player_priv.c
patch
|
blob
|
history
diff --git
a/src/mm_player_priv.c
b/src/mm_player_priv.c
index f1c55cbc1ee75dab5ff755114ad2d55d08afd229..8b97b9213736fb3e9fc9cee8e39b604349a9122e 100644
(file)
--- a/
src/mm_player_priv.c
+++ b/
src/mm_player_priv.c
@@
-7515,7
+7515,8
@@
__mmplayer_release_misc(mmplayer_t *player)
/* recover mode */
player->set_mode.rich_audio = cur_mode;
- if (mm_sound_remove_device_connected_callback(player->audio_device_cb_id) != MM_ERROR_NONE)
+ if (player->audio_device_cb_id > 0 &&
+ mm_sound_remove_device_connected_callback(player->audio_device_cb_id) != MM_ERROR_NONE)
LOGW("failed to remove audio device_connected_callback");
player->audio_device_cb_id = 0;