[0.6.251] Release videobin signal in pad_removed callback 68/250968/1 accepted/tizen/unified/20210113.121046 submit/tizen/20210112.010247
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 31 Dec 2020 05:47:54 +0000 (14:47 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Wed, 6 Jan 2021 07:16:54 +0000 (16:16 +0900)
- Invalid read detected in valgrind when player interrupted situation

Change-Id: If652318561413791dc98bf4617bda16b3ced6e19

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

index 86b01f3ffaf6717c1b013a1f9bc180ed6394d3df..28a641e5d9fb2b2c6eee6e016598f10760ea857d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.250
+Version:    0.6.251
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index f6f63052a624b95187961e9b70c8c80d9ee4b681..2bbe192bbf82b01d6ec0696376f4a1a3fa3f08cb 100644 (file)
@@ -7512,6 +7512,8 @@ _mmplayer_gst_decode_pad_removed(GstElement *elem, GstPad *pad,
        if (!videobin || !g_str_has_prefix(GST_PAD_NAME (pad), "video"))
                return;
 
+       __mmplayer_release_signal_connection(player, MM_PLAYER_SIGNAL_TYPE_VIDEOBIN);
+
        ret = _mmplayer_gst_set_state(player, mainbin[MMPLAYER_M_V_CONCAT].gst, GST_STATE_NULL, FALSE, timeout);
        if (ret != MM_ERROR_NONE) {
                LOGE("fail to change state to NULL");