[0.6.248] Post FLUSH_BUFFER message to retrieve exported buffers 17/247317/2 submit/tizen/20201110.045527
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 10 Nov 2020 01:26:33 +0000 (10:26 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 10 Nov 2020 03:07:53 +0000 (12:07 +0900)
- change message name MM_MESSAGE_GAPLESS_CONSTRUCTION to MM_MESSAGE_FLUSH_BUFFER

Change-Id: Ib4231615b841ff254031c9cc261357f5b0fe723d

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

index 306e541..a6300a8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.247
+Version:    0.6.248
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 395e0f5..d6b84e9 100644 (file)
@@ -4628,6 +4628,8 @@ __resource_release_cb(mm_resource_manager_h rm, mm_resource_manager_res_h res,
                LOGW("failed to get play position.");
        }
 
+       MMPLAYER_POST_MSG(player, MM_MESSAGE_FLUSH_BUFFER, NULL);
+
        LOGD("video resource conflict so, resource will be freed by unrealizing");
        if (_mmplayer_unrealize((MMHandleType)player) != MM_ERROR_NONE)
                LOGE("failed to unrealize");
@@ -7567,7 +7569,7 @@ _mmplayer_gst_about_to_finish(GstElement *bin, gpointer data)
        _mmplayer_set_reconfigure_state(player, TRUE);
        MMPLAYER_CMD_UNLOCK(player);
 
-       MMPLAYER_POST_MSG(player, MM_MESSAGE_GAPLESS_CONSTRUCTION, NULL);
+       MMPLAYER_POST_MSG(player, MM_MESSAGE_FLUSH_BUFFER, NULL);
        __mmplayer_deactivate_old_path(player);
 
        MMPLAYER_FLEAVE();
@@ -7638,7 +7640,7 @@ _mmplayer_gst_decode_drained(GstElement *bin, gpointer data)
        player->gapless.update_segment[MM_PLAYER_TRACK_TYPE_VIDEO] = FALSE;
 
        /* deactivate pipeline except sinkbins to set up the new pipeline of next uri*/
-       MMPLAYER_POST_MSG(player, MM_MESSAGE_GAPLESS_CONSTRUCTION, NULL); /* post message for gapless */
+       MMPLAYER_POST_MSG(player, MM_MESSAGE_FLUSH_BUFFER, NULL); /* post message for gapless */
        __mmplayer_deactivate_old_path(player);
 
        MMPLAYER_FLEAVE();