From 99a05c56adbd42600341f187f15671b88b61eab5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Feb 2016 13:48:30 +0100 Subject: [PATCH] tag/Generic: use InputStream::LockRewind() instead of Rewind() Fixes deadlock. --- src/tag/Generic.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag/Generic.cxx b/src/tag/Generic.cxx index f31618433..b8f2da046 100644 --- a/src/tag/Generic.cxx +++ b/src/tag/Generic.cxx @@ -38,7 +38,7 @@ ScanGenericTags(InputStream &is, const TagHandler &handler, void *ctx) return true; #ifdef ENABLE_ID3TAG - if (!is.Rewind(IgnoreError())) + if (!is.LockRewind(IgnoreError())) return false; return tag_id3_scan(is, handler, ctx);