]> code.delx.au - pulseaudio/commitdiff
only interpolate when the last timing info told us the stream is indeed playing
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Jun 2006 00:18:43 +0000 (00:18 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Jun 2006 00:18:43 +0000 (00:18 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1051 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulse/stream.c

index c8fc09d29b4315e94953e65a889f4f3681457271..677df009d0a39e0070e8cc8aec2a48966d922741 100644 (file)
@@ -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);
         }