[1.1.4] Set async property to FALSE in text sink when stop player 29/318129/1 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20250116.154250
authorGilbok Lee <gilbok.lee@samsung.com>
Fri, 10 Jan 2025 08:18:43 +0000 (17:18 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 13 Jan 2025 08:22:43 +0000 (08:22 +0000)
- missing async property in _mmplayer_gst_stop()

Change-Id: I741eef618a2d30714a93edf07f61407e81b95399
(cherry picked from commit 3f3085b0092f2e40d55e603ac3f71e5b8390c059)

packaging/libmm-player.spec
src/mm_player_gst.c

index 638163927f0f03d4da222063232ab8fd89dcbe12..a277152427b10b87372333973e7815050ed20b2f 100644 (file)
@@ -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
index 757895a20f573fb975b2625d4995acefc7928706..52862aecff818dd36799ad69221fe69a7357871c 100644 (file)
@@ -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) {