test/read_tags: use input_stream_wait_ready()

This commit is contained in:
Max Kellermann 2013-09-05 00:22:43 +02:00
parent 681d6bbdc5
commit 52ffdb0a55
1 changed files with 1 additions and 4 deletions

View File

@ -196,10 +196,7 @@ int main(int argc, char **argv)
mutex.lock(); mutex.lock();
while (!is->ready) { input_stream_wait_ready(is);
cond.wait(mutex);
input_stream_update(is);
}
if (!input_stream_check(is, error)) { if (!input_stream_check(is, error)) {
mutex.unlock(); mutex.unlock();