From 2d88251d9d90aafab7e6e953a6627530e681e2de Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 28 Jul 2009 18:29:07 +0200 Subject: pulsesrc: cleanups Keep track of the paused state of the source and leave the read function when paused. don't wait for a latency update when the delay is not yet known but simply return 0 instead of blocking. Keep track of the corked state of the stream. Fix the state changes. --- ext/pulse/pulsesrc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/pulse/pulsesrc.h') diff --git a/ext/pulse/pulsesrc.h b/ext/pulse/pulsesrc.h index 15d35f72..2358eba1 100644 --- a/ext/pulse/pulsesrc.h +++ b/ext/pulse/pulsesrc.h @@ -70,8 +70,10 @@ struct _GstPulseSrc GstPulseMixerCtrl *mixer; GstPulseProbe *probe; + gboolean corked; gboolean operation_success; - gboolean did_reset, in_read; + gboolean paused; + gboolean in_read; }; struct _GstPulseSrcClass -- cgit