aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-09-02 20:02:56 +0200
committerMax Kellermann <max@duempel.org>2014-09-02 20:02:56 +0200
commit5121316036ae5af381066474037fc28fbcd63696 (patch)
treee2b1921fb5f6becdc6429f81d7fe89a277c8a381
parent68bdfa9d0eac9326f3ec729614e5b688fa2f8b39 (diff)
downloadmpd-5121316036ae5af381066474037fc28fbcd63696.tar.gz
mpd-5121316036ae5af381066474037fc28fbcd63696.tar.xz
mpd-5121316036ae5af381066474037fc28fbcd63696.zip
input/async: add method IsPaused()
-rw-r--r--src/input/AsyncInputStream.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/AsyncInputStream.hxx b/src/input/AsyncInputStream.hxx
index 6e0031a0a..7935f1a17 100644
--- a/src/input/AsyncInputStream.hxx
+++ b/src/input/AsyncInputStream.hxx
@@ -85,6 +85,10 @@ protected:
void Pause();
+ bool IsPaused() const {
+ return paused;
+ }
+
/**
* Declare that the underlying stream was closed. We will
* continue feeding Read() calls from the buffer until it runs