playlist/Plugin: pass InputStreamPtr&& to open_stream()

Obsolete class CloseSongEnumerator, which was a kludge.
This commit is contained in:
Max Kellermann
2016-02-21 12:53:47 +01:00
parent cadc67ea40
commit 0705f42cf8
18 changed files with 97 additions and 157 deletions

View File

@@ -26,6 +26,11 @@
#include <assert.h>
TextInputStream::TextInputStream(InputStreamPtr &&_is)
:is(std::move(_is)) {}
TextInputStream::~TextInputStream() {}
char *
TextInputStream::ReadLine()
{
@@ -54,7 +59,7 @@ TextInputStream::ReadLine()
--dest.size;
Error error;
size_t nbytes = is.LockRead(dest.data, dest.size, error);
size_t nbytes = is->LockRead(dest.data, dest.size, error);
if (nbytes > 0)
buffer.Append(nbytes);
else if (error.IsDefined()) {