aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 00:22:43 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 00:22:43 +0200
commit52ffdb0a55e43153fa9fc1189316884a630df700 (patch)
treeb6817f9c49ca0ab729fe1140ccdd21797deac97e /test
parent681d6bbdc565ce285f798d1d0c84756f86947f97 (diff)
downloadmpd-52ffdb0a55e43153fa9fc1189316884a630df700.tar.gz
mpd-52ffdb0a55e43153fa9fc1189316884a630df700.tar.xz
mpd-52ffdb0a55e43153fa9fc1189316884a630df700.zip
test/read_tags: use input_stream_wait_ready()
Diffstat (limited to 'test')
-rw-r--r--test/read_tags.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/read_tags.cxx b/test/read_tags.cxx
index 7a3cd15d7..8b8500607 100644
--- a/test/read_tags.cxx
+++ b/test/read_tags.cxx
@@ -196,10 +196,7 @@ int main(int argc, char **argv)
mutex.lock();
- while (!is->ready) {
- cond.wait(mutex);
- input_stream_update(is);
- }
+ input_stream_wait_ready(is);
if (!input_stream_check(is, error)) {
mutex.unlock();