mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-02 14:20:06 +00:00
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
1 changed files with 8 additions and 0 deletions
|
@ -2812,6 +2812,14 @@ gst_pulsesink_event (GstBaseSink * sink, GstEvent * event)
|
|||
|
||||
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:
|
||||
gst_pulsesink_flush_ringbuffer (pulsesink);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue