tag/Generic: use InputStream::LockRewind() instead of Rewind()

Fixes deadlock.
This commit is contained in:
Max Kellermann 2016-02-26 13:48:30 +01:00
parent cfc65397b3
commit 99a05c56ad

View File

@ -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);