Commit 69246dfe authored by Sebastian Dröge's avatar Sebastian Dröge

pulsesink: Flush the ringbuffer on GAP events without duration

This is required to properly start the ringbuffer and clock.
parent 83a47cdd
......@@ -2812,6 +2812,14 @@ gst_pulsesink_event (GstBaseSink * sink, GstEvent * event)
break;
}
case GST_EVENT_GAP:{
GstClockTime timestamp, duration;
gst_event_parse_gap (event, &timestamp, &duration);
if (duration == GST_CLOCK_TIME_NONE)
gst_pulsesink_flush_ringbuffer (pulsesink);
break;
}
case GST_EVENT_EOS:
gst_pulsesink_flush_ringbuffer (pulsesink);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment