diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-06-21 00:18:43 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-06-21 00:18:43 +0000 |
commit | 1710041eaffc917d45eaeb6143db24a9773842b3 (patch) | |
tree | 01241e2307bccfbed19996450a4a16db383ccffc /src/pulse | |
parent | 74e958c008c743ec157edf4f08edf5cb94413194 (diff) |
only interpolate when the last timing info told us the stream is indeed playing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1051 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulse')
-rw-r--r-- | src/pulse/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/stream.c b/src/pulse/stream.c index c8fc09d29..677df009d 100644 --- a/src/pulse/stream.c +++ b/src/pulse/stream.c @@ -1254,7 +1254,7 @@ int pa_stream_get_time(pa_stream *s, pa_usec_t *r_usec) { /* We just add the time that passed since the latency info was * current */ - if (!s->corked) { + if (!s->corked && s->timing_info.playing) { struct timeval now; usec += pa_timeval_diff(pa_gettimeofday(&now), &s->timing_info.timestamp); } |