From aeb2baa495776d9fc06e63f91167c40c334303c8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 29 Dec 2013 18:08:49 +0100 Subject: InputStream: add static method OpenReady() Merge some duplicate code. --- test/dump_playlist.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/dump_playlist.cxx') diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index f0401249e..2ac855a84 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -92,7 +92,7 @@ int main(int argc, char **argv) if (playlist == NULL) { /* open the stream and wait until it becomes ready */ - is = InputStream::Open(uri, mutex, cond, error); + is = InputStream::OpenReady(uri, mutex, cond, error); if (is == NULL) { if (error.IsDefined()) LogError(error); @@ -102,8 +102,6 @@ int main(int argc, char **argv) return 2; } - is->LockWaitReady(); - /* open the playlist */ playlist = playlist_list_open_stream(*is, uri); -- cgit v1.2.3