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);