[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 86b01f3..28a641e 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 f6f6305..2bbe192 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");