From b8cb2b4d79aa5f3408db7833f3d4b5bf8dcab79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 28 May 2013 15:54:33 +0200 Subject: [PATCH] midiparse: In pull mode drop SEGMENT, CAPS and STREAM_START events We create and send our own later from another thread. --- gst/midi/midiparse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/midi/midiparse.c b/gst/midi/midiparse.c index 28fb2bf4af..609d55fc2a 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;