midiparse: In pull mode drop SEGMENT, CAPS and STREAM_START events
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 28 May 2013 13:54:33 +0000 (15:54 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 28 May 2013 13:55:25 +0000 (15:55 +0200)
We create and send our own later from another thread.

gst/midi/midiparse.c

index 28fb2bf..609d55f 100644 (file)
@@ -1160,6 +1160,12 @@ gst_midi_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
       /* don't forward the event */
       gst_event_unref (event);
       break;
+    case GST_EVENT_CAPS:
+    case GST_EVENT_STREAM_START:
+    case GST_EVENT_SEGMENT:
+      res = TRUE;
+      gst_event_unref (event);
+      break;
     default:
       res = gst_pad_event_default (pad, parent, event);
       break;