diff options
author | Max Kellermann <max@duempel.org> | 2013-10-23 21:22:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-23 21:58:44 +0200 |
commit | f1027ed198535ce16cfb9c83ac802788ec750488 (patch) | |
tree | bc8787407538be55e8bf70d3413644a8a8f4abf4 /src/PlaylistRegistry.cxx | |
parent | fe3c5e4e8e3c46d57cb49c2dd6c4c2dc814a797b (diff) | |
download | mpd-f1027ed198535ce16cfb9c83ac802788ec750488.tar.gz mpd-f1027ed198535ce16cfb9c83ac802788ec750488.tar.xz mpd-f1027ed198535ce16cfb9c83ac802788ec750488.zip |
InputStream: add method Rewind()
Diffstat (limited to '')
-rw-r--r-- | src/PlaylistRegistry.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/PlaylistRegistry.cxx b/src/PlaylistRegistry.cxx index f18f7c5e9..e29bd49c6 100644 --- a/src/PlaylistRegistry.cxx +++ b/src/PlaylistRegistry.cxx @@ -44,7 +44,6 @@ #include <assert.h> #include <string.h> -#include <stdio.h> const struct playlist_plugin *const playlist_plugins[] = { &extm3u_playlist_plugin, @@ -221,7 +220,7 @@ playlist_list_open_stream_mime2(struct input_stream *is, const char *mime) string_array_contains(plugin->mime_types, mime)) { /* rewind the stream, so each plugin gets a fresh start */ - is->Seek(0, SEEK_SET, IgnoreError()); + is->Rewind(IgnoreError()); auto playlist = playlist_plugin_open_stream(plugin, is); if (playlist != nullptr) @@ -261,7 +260,7 @@ playlist_list_open_stream_suffix(struct input_stream *is, const char *suffix) string_array_contains(plugin->suffixes, suffix)) { /* rewind the stream, so each plugin gets a fresh start */ - is->Seek(0, SEEK_SET, IgnoreError()); + is->Rewind(IgnoreError()); auto playlist = playlist_plugin_open_stream(plugin, is); if (playlist != nullptr) |