From: Gilbok Lee Date: Fri, 10 Jan 2025 08:18:43 +0000 (+0900) Subject: [1.1.4] Set async property to FALSE in text sink when stop player X-Git-Tag: accepted/tizen/unified/20250113.133519^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f3085b0092f2e40d55e603ac3f71e5b8390c059;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git [1.1.4] Set async property to FALSE in text sink when stop player - missing async property in _mmplayer_gst_stop() Change-Id: I741eef618a2d30714a93edf07f61407e81b95399 --- diff --git a/packaging/libmm-player.spec b/packaging/libmm-player.spec index 6381639..a277152 100644 --- a/packaging/libmm-player.spec +++ b/packaging/libmm-player.spec @@ -1,6 +1,6 @@ Name: libmm-player Summary: Multimedia Framework Player Library -Version: 1.1.3 +Version: 1.1.4 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_player_gst.c b/src/mm_player_gst.c index 757895a..52862ae 100644 --- a/src/mm_player_gst.c +++ b/src/mm_player_gst.c @@ -3599,14 +3599,17 @@ _mmplayer_gst_stop(mmplayer_t *player) if (player->es_player_push_mode) /* disable the async state transition because there could be no data in the pipeline */ __mmplayer_gst_set_async(player, FALSE, MMPLAYER_SINK_ALL); + else if (player->pipeline->textbin) + __mmplayer_gst_set_async(player, FALSE, MMPLAYER_TEXT_SINK); /* set gst state */ ret = _mmplayer_gst_set_state(player, player->pipeline->mainbin[MMPLAYER_M_PIPE].gst, GST_STATE_PAUSED, FALSE, timeout); - if (player->es_player_push_mode) { + if (player->es_player_push_mode) /* enable the async state transition as default operation */ __mmplayer_gst_set_async(player, TRUE, MMPLAYER_SINK_ALL); - } + else if (player->pipeline->textbin) + __mmplayer_gst_set_async(player, TRUE, MMPLAYER_TEXT_SINK); /* return if set_state has failed */ if (ret != MM_ERROR_NONE) {