mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 17:59:21 +00:00
fix(localplayer): destroy correctly ms player
This commit is contained in:
parent
df0f8cfa9c
commit
b537254c7b
2 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,6 @@ static int _local_player_get_current_position(LinphonePlayer *obj) {
|
|||
|
||||
static void _local_player_destroy(LinphonePlayer *obj) {
|
||||
ms_media_player_free((MSMediaPlayer *)obj->impl);
|
||||
_linphone_player_destroy(obj);
|
||||
}
|
||||
|
||||
static void _local_player_close(LinphonePlayer *obj) {
|
||||
|
|
|
|||
|
|
@ -100,10 +100,11 @@ void linphone_player_close(LinphonePlayer *obj){
|
|||
}
|
||||
|
||||
void linphone_player_destroy(LinphonePlayer *obj) {
|
||||
if(obj->destroy) obj->destroy(obj);
|
||||
_linphone_player_destroy(obj);
|
||||
}
|
||||
|
||||
void _linphone_player_destroy(LinphonePlayer *player) {
|
||||
if(player->destroy) player->destroy(player);
|
||||
linphone_player_cbs_unref(player->callbacks);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue