input/InputStream: migrate from class Error to C++ exceptions
This commit is contained in:
@@ -38,8 +38,11 @@ ScanGenericTags(InputStream &is, const TagHandler &handler, void *ctx)
|
||||
return true;
|
||||
|
||||
#ifdef ENABLE_ID3TAG
|
||||
if (!is.LockRewind(IgnoreError()))
|
||||
try {
|
||||
is.LockRewind();
|
||||
} catch (const std::runtime_error &) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return tag_id3_scan(is, handler, ctx);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user