midiparse: In pull mode drop SEGMENT, CAPS and STREAM_START events

We create and send our own later from another thread.
This commit is contained in:
Sebastian Dröge 2013-05-28 15:54:33 +02:00
parent 357779d3c6
commit b8cb2b4d79

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