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:
parent
357779d3c6
commit
b8cb2b4d79
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user