diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-07-28 18:29:07 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-07-28 18:34:15 +0200 |
commit | 2d88251d9d90aafab7e6e953a6627530e681e2de (patch) | |
tree | fbd31770d8e7a5e72a9662805386a40281963927 /ext/pulse/pulsesrc.h | |
parent | 19233e9671192e2cba3fb841211f314eb2f2eb94 (diff) |
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.
Diffstat (limited to 'ext/pulse/pulsesrc.h')
-rw-r--r-- | ext/pulse/pulsesrc.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |