pulsesink: Flush the ringbuffer on GAP events without duration
This is required to properly start the ringbuffer and clock.
This commit is contained in:
parent
83a47cdd0e
commit
69246dfef7
@ -2812,6 +2812,14 @@ gst_pulsesink_event (GstBaseSink * sink, GstEvent * event)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GST_EVENT_GAP:{
|
||||||
|
GstClockTime timestamp, duration;
|
||||||
|
|
||||||
|
gst_event_parse_gap (event, ×tamp, &duration);
|
||||||
|
if (duration == GST_CLOCK_TIME_NONE)
|
||||||
|
gst_pulsesink_flush_ringbuffer (pulsesink);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case GST_EVENT_EOS:
|
case GST_EVENT_EOS:
|
||||||
gst_pulsesink_flush_ringbuffer (pulsesink);
|
gst_pulsesink_flush_ringbuffer (pulsesink);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user