fix segfault when pushing events twice
[platform/upstream/gstreamer.git] / gst / autoplug / gstspideridentity.c
index d51d157..3408b8f 100644 (file)
@@ -170,6 +170,7 @@ gst_spider_identity_chain (GstPad *pad, GstBuffer *buf)
 
   if (GST_IS_EVENT (buf)) {
     gst_pad_event_default (ident->sink, GST_EVENT (buf));
+    return;
   }
 
   if ((ident->src != NULL) && (GST_PAD_PEER (ident->src) != NULL)) {