summaryrefslogtreecommitdiffstats
path: root/src/pulse/stream.c
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-06-23 22:21:03 +0200
committerColin Guthrie <colin@mageia.org>2011-06-24 00:34:05 +0100
commit5818a2c63e9a52a545b9c8eb6fdbfa24cfee822f (patch)
tree9d3d4c27d9dfedd4d3384e3559d01d673c042290 /src/pulse/stream.c
parent3adc43b8fe507e3140f7d6f9bab32584b9eadfa4 (diff)
win32: Make some unused-variable warnings go away
Diffstat (limited to 'src/pulse/stream.c')
-rw-r--r--src/pulse/stream.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index d60b864b..373bc346 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -790,11 +790,10 @@ void pa_command_stream_event(pa_pdispatch *pd, uint32_t command, uint32_t tag, p
goto finish;
if (pa_streq(event, PA_STREAM_EVENT_FORMAT_LOST)) {
- /* Let client know what the running time was when the stream had to be
- * killed */
- pa_usec_t time;
- if (pa_stream_get_time(s, &time) == 0)
- pa_proplist_setf(pl, "stream-time", "%llu", (unsigned long long) time);
+ /* Let client know what the running time was when the stream had to be killed */
+ pa_usec_t stream_time;
+ if (pa_stream_get_time(s, &stream_time) == 0)
+ pa_proplist_setf(pl, "stream-time", "%llu", (unsigned long long) stream_time);
}
if (s->event_callback)