From cd44bdfb0aead8128089b767f4f9fe832a8902e2 Mon Sep 17 00:00:00 2001 From: Sejun Park Date: Tue, 9 Jan 2018 14:57:27 +0900 Subject: [PATCH] fixed svace issues Change-Id: I4e8f1f3c4bb55dc65c22c80308a89b12f4f0c754 --- packaging/gst-plugins-tizen.spec | 2 +- video360/src/gstvideo360.c | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) 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); -- 2.7.4