From cd89559ad2472084b000940d57dd8a4b3b42154c Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Tue, 1 Sep 2020 15:48:19 +0900 Subject: [PATCH] [0.6.235] Fix crash when audiobin is not generated Change-Id: I05732a540fb985d658ed474f9df26b21f527ddba --- packaging/libmm-player.spec | 2 +- src/mm_player_attrs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/libmm-player.spec b/packaging/libmm-player.spec index 84cbf1f..e3e5f6d 100644 --- a/packaging/libmm-player.spec +++ b/packaging/libmm-player.spec @@ -1,6 +1,6 @@ Name: libmm-player Summary: Multimedia Framework Player Library -Version: 0.6.234 +Version: 0.6.235 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_player_attrs.c b/src/mm_player_attrs.c index 386a752..fbf5c9b 100644 --- a/src/mm_player_attrs.c +++ b/src/mm_player_attrs.c @@ -109,7 +109,7 @@ static bool __mmplayer_commit_audio_pitch_value(MMHandleType handle, int attr_id MMPLAYER_FENTER(); MMPLAYER_RETURN_VAL_IF_FAIL(player && value, false); - MMPLAYER_RETURN_VAL_IF_FAIL(player->pipeline && player->pipeline->mainbin, true); + MMPLAYER_RETURN_VAL_IF_FAIL(player->pipeline && player->pipeline->audiobin, true); pipeline = player->pipeline; mm_attrs_get_int_by_name(player->attrs, MM_PLAYER_PITCH_CONTROL, &pitch_control); -- 2.7.4