summaryrefslogtreecommitdiffstats
path: root/src/pulse
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-08-09 17:04:27 +0200
committerLennart Poettering <lennart@poettering.net>2008-08-09 17:04:27 +0200
commit72f520f93c576facf8a49af28b764e1be8ee4ad5 (patch)
tree1695285cefc7e072f27a687ae6a3521e29080876 /src/pulse
parentafbfd5d9375919c0b6dd718d68588a5d7cf18140 (diff)
make gcc shut up
Diffstat (limited to 'src/pulse')
-rw-r--r--src/pulse/context.c2
-rw-r--r--src/pulse/stream.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c
index bf743338..ed6415b0 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -439,7 +439,7 @@ static void setup_complete_callback(pa_pdispatch *pd, uint32_t command, uint32_t
switch(c->state) {
case PA_CONTEXT_AUTHORIZING: {
pa_tagstruct *reply;
- pa_bool_t shm_on_remote;
+ pa_bool_t shm_on_remote = FALSE;
if (pa_tagstruct_getu32(t, &c->version) < 0 ||
!pa_tagstruct_eof(t)) {
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index cfc454be..82eff4ad 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -1257,7 +1257,9 @@ static pa_usec_t calc_time(pa_stream *s, pa_bool_t ignore_transport) {
usec -= s->timing_info.sink_usec;
}
- } else if (s->direction == PA_STREAM_RECORD) {
+ } else {
+ pa_assert(s->direction == PA_STREAM_RECORD);
+
/* The last byte written into the server side queue had
* this time value associated */
usec = pa_bytes_to_usec(s->timing_info.write_index < 0 ? 0 : (uint64_t) s->timing_info.write_index, &s->sample_spec);