From: Sejun Park Date: Tue, 9 Jan 2018 05:57:27 +0000 (+0900) Subject: fixed svace issues X-Git-Tag: accepted/tizen/unified/20180115.074451^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F166272%2F2;p=platform%2Fupstream%2Fgst-plugins-tizen.git fixed svace issues Change-Id: I4e8f1f3c4bb55dc65c22c80308a89b12f4f0c754 --- diff --git a/packaging/gst-plugins-tizen.spec b/packaging/gst-plugins-tizen.spec index 20ee3d2..1903cb8 100644 --- a/packaging/gst-plugins-tizen.spec +++ b/packaging/gst-plugins-tizen.spec @@ -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+ diff --git a/video360/src/gstvideo360.c b/video360/src/gstvideo360.c index 0edc77f..cde73eb 100644 --- a/video360/src/gstvideo360.c +++ b/video360/src/gstvideo360.c @@ -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);