summaryrefslogtreecommitdiffstats
path: root/src/pulse/stream.c
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/stream.c
parentafbfd5d9375919c0b6dd718d68588a5d7cf18140 (diff)
make gcc shut up
Diffstat (limited to 'src/pulse/stream.c')
-rw-r--r--src/pulse/stream.c4
1 files changed, 3 insertions, 1 deletions
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);