Commit 10f08685 authored by Max Kellermann's avatar Max Kellermann

tag/Id3Load: remove unnecessary seek

parent d67c6c37
...@@ -105,7 +105,7 @@ tag_id3_read(FILE *file, long offset, int whence) ...@@ -105,7 +105,7 @@ tag_id3_read(FILE *file, long offset, int whence)
static UniqueId3Tag static UniqueId3Tag
tag_id3_find_from_beginning(FILE *stream) tag_id3_find_from_beginning(FILE *stream)
{ {
auto tag = tag_id3_read(stream, 0, SEEK_SET); auto tag = ReadId3Tag(stream);
if (!tag) { if (!tag) {
return nullptr; return nullptr;
} else if (tag_is_id3v1(tag.get())) { } else if (tag_is_id3v1(tag.get())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment