archive/File, input/Plugin: return InputStreamPtr

This commit is contained in:
Max Kellermann
2017-12-26 20:05:22 +01:00
parent 49619fbd77
commit 7bce6329e3
17 changed files with 60 additions and 63 deletions

View File

@@ -31,7 +31,7 @@ try {
Mutex mutex;
Cond cond;
InputStreamPtr is(archive.OpenStream(path_utf8, mutex, cond));
auto is = archive.OpenStream(path_utf8, mutex, cond);
if (!is)
return false;
@@ -47,7 +47,7 @@ try {
Mutex mutex;
Cond cond;
InputStreamPtr is(archive.OpenStream(path_utf8, mutex, cond));
auto is = archive.OpenStream(path_utf8, mutex, cond);
return is && tag_stream_scan(*is, builder);
} catch (const std::exception &e) {
return false;