[0.6.250] Release videobin signal in pad_removed callback 75/250675/1 accepted/tizen/6.0/unified/20210112.063629 submit/tizen_6.0/20210111.004312
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 31 Dec 2020 05:47:54 +0000 (14:47 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 31 Dec 2020 05:47:56 +0000 (14:47 +0900)
- Invalid read detected in valgrind when player interrupted situation

Change-Id: If652318561413791dc98bf4617bda16b3ced6e19

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

index a8ea8e742648c825d8aafa47d25d1274cfbbe277..86b01f3ffaf6717c1b013a1f9bc180ed6394d3df 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.249
+Version:    0.6.250
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index c25a6fc9217141719d52049924b999aa0f44054e..5722debe62869c4e78b64e1318b963beca3c4d5f 100644 (file)
@@ -7508,6 +7508,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");