diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-16 17:28:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-10-17 00:12:51 +0200 |
commit | 98d27997ef22c29fabbebeb36472ef446f61b499 (patch) | |
tree | 17dfd2cf6ee011652be74721019aec8892349310 /ext/pulse/pulsesink.c | |
parent | 18db08720487c6a2300080d2a56bb774ea27e040 (diff) |
pulse: make a few things smaller by making them bitfields
Diffstat (limited to 'ext/pulse/pulsesink.c')
-rw-r--r-- | ext/pulse/pulsesink.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index 58344e26..d84c49d4 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -1,3 +1,5 @@ +/*-*- Mode: C; c-basic-offset: 2 -*-*/ + /* GStreamer pulseaudio plugin * * Copyright (c) 2004-2008 Lennart Poettering @@ -109,10 +111,9 @@ struct _GstPulseRingBuffer pa_sample_spec sample_spec; - gboolean corked; - gboolean in_commit; - gboolean paused; - guint required; + gboolean corked:1; + gboolean in_commit:1; + gboolean paused:1; }; struct _GstPulseRingBufferClass @@ -218,8 +219,9 @@ gst_pulseringbuffer_init (GstPulseRingBuffer * pbuf, pbuf->sample_spec.channels = 0; #endif - pbuf->paused = FALSE; pbuf->corked = TRUE; + pbuf->in_commit = FALSE; + pbuf->paused = FALSE; } static void |