From: Sebastian Dröge Date: Wed, 24 Oct 2012 09:22:29 +0000 (+0200) Subject: audiobasesink: Add explanation to the GAP event handling code X-Git-Tag: 1.19.3~511^2~5814 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1813701ef2fc88dd3b09ed5705aab00688c47c01;p=platform%2Fupstream%2Fgstreamer.git audiobasesink: Add explanation to the GAP event handling code --- diff --git a/gst-libs/gst/audio/gstaudiobasesink.c b/gst-libs/gst/audio/gstaudiobasesink.c index b331ca9..d40c241 100644 --- a/gst-libs/gst/audio/gstaudiobasesink.c +++ b/gst-libs/gst/audio/gstaudiobasesink.c @@ -1024,6 +1024,10 @@ gst_audio_base_sink_wait_event (GstBaseSink * bsink, GstEvent * event) spec = &sink->ringbuffer->spec; gst_event_parse_gap (event, ×tamp, &duration); + /* If the GAP event has a duration, handle it like a + * silence buffer of that duration. Otherwise at least + * start the ringbuffer to make sure the clock is running. + */ if (duration != GST_CLOCK_TIME_NONE) { n_samples = gst_util_uint64_scale_ceil (duration, spec->info.rate, GST_SECOND);