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

@@ -81,7 +81,7 @@ input_ffmpeg_init(EventLoop &, const ConfigBlock &)
throw PluginUnavailable("No protocol");
}
static InputStream *
static InputStreamPtr
input_ffmpeg_open(const char *uri,
Mutex &mutex, Cond &cond)
{
@@ -98,7 +98,7 @@ input_ffmpeg_open(const char *uri,
if (result != 0)
throw MakeFfmpegError(result);
return new FfmpegInputStream(uri, mutex, cond, h);
return std::make_unique<FfmpegInputStream>(uri, mutex, cond, h);
}
size_t