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

@@ -189,7 +189,7 @@ xspf_char_data(void *user_data, const XML_Char *s, int len)
*/
static SongEnumerator *
xspf_open_stream(InputStream &is)
xspf_open_stream(InputStreamPtr &&is)
{
XspfParser parser;
@@ -199,7 +199,7 @@ xspf_open_stream(InputStream &is)
expat.SetCharacterDataHandler(xspf_char_data);
Error error;
if (!expat.Parse(is, error)) {
if (!expat.Parse(*is, error)) {
LogError(error);
return nullptr;
}