1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/audio/liblastfm/files/patch-src_mbid__mp3.c
Jason E. Hale aae1055590 Fix 301 redirects in the UrlBuilder class
- http scheme redirects to https
- Mobile website (m.last.fm) redirects to www.last.fm
- Localized hosts redirect e.g. www.lastfm.de to www.last.fm/de
- New localePath() function has been added to handle the localized
  base path since the library was localizing using the host before.
  This is not an official fix, but upstream is pretty dead.
Move USES upward
Convert CMAKE_ARGS to CMAKE_ON
2018-04-05 17:20:36 +00:00

16 lines
514 B
C

Silence warning
warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
if (!strncmp(head,"ID3",3) == 0) {
--- src/mbid_mp3.c.orig 2014-10-02 14:05:46 UTC
+++ src/mbid_mp3.c
@@ -94,7 +94,7 @@ int getMP3_MBID(const char *path, char mbid[MBID_BUFFE
while (s) {
mfile(3,head,fp,&s);
- if (!strncmp(head,"ID3",3) == 0) {
+ if (!(strncmp(head,"ID3",3) == 0)) {
//debug("No ID3v2 tag found: %s\n",path);
break;
}