aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_all.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-30 16:28:15 +0100
committerMax Kellermann <max@duempel.org>2009-10-30 16:28:15 +0100
commit73cff374fd94a1c16e0201fcda020396c0f41962 (patch)
tree20fd66a68625db58cbad46ecf674dbfeda29c36d /src/output_all.h
parentcec019efffe4ebb87ec2c630003e6bce5083bb5e (diff)
downloadmpd-73cff374fd94a1c16e0201fcda020396c0f41962.tar.gz
mpd-73cff374fd94a1c16e0201fcda020396c0f41962.tar.xz
mpd-73cff374fd94a1c16e0201fcda020396c0f41962.zip
{player,output}_thread: fixed elapsed_time quirks
Right after seeking and song change, the elapsed_time shows old information, because the output thread didn't finish a full chunk yet. This patch re-adds a second elapsed_time variable, and keeps track of a fallback value, in case the output thread can't provide a reliable value.
Diffstat (limited to 'src/output_all.h')
-rw-r--r--src/output_all.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output_all.h b/src/output_all.h
index 2f5101f1b..91b6f3f5d 100644
--- a/src/output_all.h
+++ b/src/output_all.h
@@ -137,7 +137,8 @@ audio_output_all_cancel(void);
/**
* Returns the "elapsed_time" stamp of the most recently finished
- * chunk.
+ * chunk. A negative value is returned when no chunk has been
+ * finished yet.
*/
float
audio_output_all_get_elapsed_time(void);