tag/Generic: fail if InputStream is not seekable

This commit is contained in:
Max Kellermann 2019-05-31 17:49:37 +02:00
parent 9ed4fac341
commit e8a0ce643a

View File

@ -31,6 +31,9 @@
bool bool
ScanGenericTags(InputStream &is, TagHandler &handler) ScanGenericTags(InputStream &is, TagHandler &handler)
{ {
if (!is.IsSeekable())
return false;
if (tag_ape_scan2(is, handler)) if (tag_ape_scan2(is, handler))
return true; return true;