Check null error case 70/115770/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv tizen_3.0 accepted/tizen/3.0/common/20170223.122151 accepted/tizen/3.0/ivi/20170223.073927 accepted/tizen/3.0/mobile/20170223.073824 accepted/tizen/3.0/tv/20170223.073908 submit/tizen_3.0/20170222.054048
authorSeokHoon Lee <andy.shlee@samsung.com>
Tue, 21 Feb 2017 08:30:45 +0000 (17:30 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Tue, 21 Feb 2017 08:31:05 +0000 (17:31 +0900)
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I853a825db1fd44f36cd9e93aa9e9acef8821fabd

packaging/libmm-wfd.spec
src/mm_wfd_sink_priv.c

index ce8fe01..dc77a71 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-wfd
 Summary:    Multimedia Framework Wifi-Display Library
-Version:    0.2.215
+Version:    0.2.216
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 0d87265..2d3df58 100644 (file)
@@ -2396,6 +2396,11 @@ __mm_wfd_sink_demux_pad_added(GstElement *demux, GstPad *pad, gpointer data)
                                                        wfd_sink->pipeline->mainbin[WFD_SINK_M_PIPE].gst);
 
        name = gst_pad_get_name(pad);
+       if(name == NULL) {
+               wfd_sink_error("fail to get pad");
+               goto ERROR;
+       }
+
        pipeline = wfd_sink->pipeline->mainbin[WFD_SINK_M_PIPE].gst;
 
        /* take srcpad from demuxer added pad */