aboutsummaryrefslogtreecommitdiffstats
path: root/src/TagFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 00:06:31 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 00:23:14 +0200
commit7d0269d2cec68c7e55df5b6db3d2266741534b17 (patch)
tree613f5d7b03bc9624f15167c76f8f4309603944cc /src/TagFile.cxx
parent52ffdb0a55e43153fa9fc1189316884a630df700 (diff)
downloadmpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.tar.gz
mpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.tar.xz
mpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.zip
InputLegacy: move functions to the input_stream class
Diffstat (limited to 'src/TagFile.cxx')
-rw-r--r--src/TagFile.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/TagFile.cxx b/src/TagFile.cxx
index cfb62b58e..d5ba40d9e 100644
--- a/src/TagFile.cxx
+++ b/src/TagFile.cxx
@@ -23,7 +23,7 @@
#include "util/Error.hxx"
#include "DecoderList.hxx"
#include "DecoderPlugin.hxx"
-#include "InputLegacy.hxx"
+#include "InputStream.hxx"
#include <assert.h>
#include <unistd.h> /* for SEEK_SET */
@@ -62,8 +62,8 @@ tag_file_scan(const char *path_fs,
open) */
if (is == nullptr) {
Error error;
- is = input_stream_open(path_fs, mutex, cond,
- error);
+ is = input_stream::Open(path_fs, mutex, cond,
+ error);
}
/* now try the stream_tag() method */
@@ -73,8 +73,7 @@ tag_file_scan(const char *path_fs,
handler_ctx))
break;
- Error error;
- input_stream_lock_seek(is, 0, SEEK_SET, error);
+ is->LockSeek(0, SEEK_SET, IgnoreError());
}
}
@@ -82,7 +81,7 @@ tag_file_scan(const char *path_fs,
} while (plugin != NULL);
if (is != NULL)
- input_stream_close(is);
+ is->Close();
return plugin != NULL;
}