summaryrefslogtreecommitdiff
path: root/gst/midi/midiparse.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-28 15:54:33 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-28 15:55:25 +0200
commitb8cb2b4d79aa5f3408db7833f3d4b5bf8dcab79c (patch)
treed3b51e817e479b876e98eb93a87e6f0fade310bb /gst/midi/midiparse.c
parent357779d3c6af96c4b43a4ba77ed70b6ffb535958 (diff)
midiparse: In pull mode drop SEGMENT, CAPS and STREAM_START events
We create and send our own later from another thread.
Diffstat (limited to 'gst/midi/midiparse.c')
-rw-r--r--gst/midi/midiparse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/midi/midiparse.c b/gst/midi/midiparse.c
index 28fb2bf4a..609d55fc2 100644
--- a/gst/midi/midiparse.c
+++ b/gst/midi/midiparse.c
@@ -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;