fixed svace issues 72/166272/2 accepted/tizen/unified/20180115.074451 submit/tizen/20180112.101533
authorSejun Park <sejun79.park@samsung.com>
Tue, 9 Jan 2018 05:57:27 +0000 (14:57 +0900)
committerSejun Park <sejun79.park@samsung.com>
Thu, 11 Jan 2018 05:27:46 +0000 (14:27 +0900)
Change-Id: I4e8f1f3c4bb55dc65c22c80308a89b12f4f0c754

packaging/gst-plugins-tizen.spec
video360/src/gstvideo360.c

index 20ee3d2..1903cb8 100644 (file)
@@ -9,7 +9,7 @@
 Name:       gst-plugins-tizen
 Version:    1.0.0
 Summary:    GStreamer tizen plugins (common)
-Release:    51
+Release:    52
 Group:      Multimedia/Framework
 Url:        http://gstreamer.freedesktop.org/
 License:    LGPL-2.1+
index 0edc77f..cde73eb 100644 (file)
@@ -830,13 +830,20 @@ gst_video360_chain (GstPad * pad, GstObject * parent, GstBuffer * in_buf)
   GstMemory *out_mem;
 #endif
   GstMemory *in_mem;
+  GstEvent *event;
   int ret;
 
-  if (gst_pad_check_reconfigure (pad))
-    if (!gst_video360_sink_event (pad, parent,
-            gst_pad_get_sticky_event (pad, GST_EVENT_CAPS, 0)))
+  if (gst_pad_check_reconfigure (pad)) {
+    event = gst_pad_get_sticky_event (pad, GST_EVENT_CAPS, 0);
+    if (!event)
       return GST_FLOW_NOT_NEGOTIATED;
 
+    if (!gst_video360_sink_event (pad, parent, event)) {
+      gst_event_unref (event);
+      return GST_FLOW_NOT_NEGOTIATED;
+    }
+  }
+
   if (this->passthrough)
     return gst_pad_push (this->srcpad, in_buf);