aboutsummaryrefslogtreecommitdiffstats
path: root/src/TagFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-29 17:09:40 +0100
committerMax Kellermann <max@duempel.org>2013-12-29 17:09:59 +0100
commitea9aff1d3f9f68eb5ae9e5f2bd67d283b8c0f47e (patch)
tree73c0e52b109aafb27cb6b96335168036d32dbc42 /src/TagFile.cxx
parentcecae419fb724b06820908ef8b9fd30fcfaa4032 (diff)
downloadmpd-ea9aff1d3f9f68eb5ae9e5f2bd67d283b8c0f47e.tar.gz
mpd-ea9aff1d3f9f68eb5ae9e5f2bd67d283b8c0f47e.tar.xz
mpd-ea9aff1d3f9f68eb5ae9e5f2bd67d283b8c0f47e.zip
TagFile: rewind the stream before trying the next plugin
Got lost in commit c97685fe
Diffstat (limited to 'src/TagFile.cxx')
-rw-r--r--src/TagFile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TagFile.cxx b/src/TagFile.cxx
index dc0aa6b64..8d29d5ebe 100644
--- a/src/TagFile.cxx
+++ b/src/TagFile.cxx
@@ -67,7 +67,8 @@ public:
IgnoreError());
if (is == nullptr)
return false;
- }
+ } else
+ is->LockRewind(IgnoreError());
/* now try the stream_tag() method */
return plugin.ScanStream(*is, handler, handler_ctx);