[0.6.229] fix svace issue 65/232065/1 accepted/tizen/unified/20200506.100223 submit/tizen/20200428.051450
authorEunhye Choi <eunhae1.choi@samsung.com>
Tue, 28 Apr 2020 05:12:51 +0000 (14:12 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Tue, 28 Apr 2020 05:12:51 +0000 (14:12 +0900)
Change-Id: I8c11552001f5ae4047017157825f4d4330038403

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

index 4117232..4a007df 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.228
+Version:    0.6.229
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index ac67add..b472ad2 100644 (file)
@@ -6533,6 +6533,11 @@ __mmplayer_remove_sinkpad (const GValue *item, gpointer user_data)
 {
        GstPad *sinkpad = g_value_get_object (item);
        GstElement *element = GST_ELEMENT(user_data);
+       if (!sinkpad || !element) {
+               LOGE("invalid parameter");
+               return;
+       }
+
        LOGD("(%s)element release request pad(%s)", GST_ELEMENT_NAME(element), GST_PAD_NAME(sinkpad));
        gst_element_release_request_pad(element, GST_PAD(sinkpad));
 }