diff options
author | Max Kellermann <max@duempel.org> | 2013-09-05 00:06:31 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-05 00:23:14 +0200 |
commit | 7d0269d2cec68c7e55df5b6db3d2266741534b17 (patch) | |
tree | 613f5d7b03bc9624f15167c76f8f4309603944cc /test/dump_playlist.cxx | |
parent | 52ffdb0a55e43153fa9fc1189316884a630df700 (diff) | |
download | mpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.tar.gz mpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.tar.xz mpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.zip |
InputLegacy: move functions to the input_stream class
Diffstat (limited to '')
-rw-r--r-- | test/dump_playlist.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index c3cdf638f..10cecf73d 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -21,7 +21,7 @@ #include "TagSave.hxx" #include "Song.hxx" #include "Directory.hxx" -#include "InputLegacy.hxx" +#include "InputStream.hxx" #include "conf.h" #include "DecoderAPI.hxx" #include "DecoderList.hxx" @@ -86,7 +86,7 @@ decoder_read(gcc_unused struct decoder *decoder, void *buffer, size_t length) { Error error; - return input_stream_lock_read(is, buffer, length, error); + return is->LockRead(buffer, length, error); } void @@ -190,22 +190,22 @@ int main(int argc, char **argv) if (playlist == NULL) { /* open the stream and wait until it becomes ready */ - is = input_stream_open(uri, mutex, cond, error); + is = input_stream::Open(uri, mutex, cond, error); if (is == NULL) { if (error.IsDefined()) g_warning("%s", error.GetMessage()); else - g_printerr("input_stream_open() failed\n"); + g_printerr("input_stream::Open() failed\n"); return 2; } - input_stream_lock_wait_ready(is); + is->LockWaitReady(); /* open the playlist */ playlist = playlist_list_open_stream(is, uri); if (playlist == NULL) { - input_stream_close(is); + is->Close(); g_printerr("Failed to open playlist\n"); return 2; } @@ -237,7 +237,7 @@ int main(int argc, char **argv) playlist_plugin_close(playlist); if (is != NULL) - input_stream_close(is); + is->Close(); decoder_plugin_deinit_all(); playlist_list_global_finish(); |