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
This commit is contained in:
Lennart Poettering 2006-06-21 00:18:43 +00:00
parent 74e958c008
commit 1710041eaf

View 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);
}