decoder/opus: fix "readpicture" on Opus files
Don't return early from ScanOpusTags() if only TagHandler::WantPicture() is set. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1413
This commit is contained in:
parent
fbecb05bf4
commit
86e9ed5f3a
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
ver 0.23.6 (not yet released)
|
ver 0.23.6 (not yet released)
|
||||||
|
* decoder
|
||||||
|
- opus: fix "readpicture" on Opus files
|
||||||
|
|
||||||
ver 0.23.5 (2021/12/01)
|
ver 0.23.5 (2021/12/01)
|
||||||
* protocol
|
* protocol
|
||||||
|
|
|
@ -91,7 +91,8 @@ ScanOpusTags(const void *data, size_t size,
|
||||||
if (!r.Expect("OpusTags", 8))
|
if (!r.Expect("OpusTags", 8))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!handler.WantPair() && !handler.WantTag())
|
if (!handler.WantPair() && !handler.WantTag() &&
|
||||||
|
!handler.WantPicture())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (!r.SkipString())
|
if (!r.SkipString())
|
||||||
|
|
Loading…
Reference in New Issue