Permalink
Browse files

Make the sndfile module build when AudioScrobbler support is disabled.

When AudioScrobbler is disabled, we don't need to keep track of album
metadata.
  • Loading branch information...
EdSchouten committed May 5, 2017
1 parent c6c1717 commit 0ea241f6a6533e47846b40889a4f1d14776539fe
Showing with 2 additions and 0 deletions.
  1. +2 −0 herrie/src/audio_format_sndfile.c
@@ -63,7 +63,9 @@ sndfile_open(struct audio_file *fd, const char *ext)
/* Metadata - libsndfile only has artist + title */
fd->artist = g_strdup(sf_get_string(hnd, SF_STR_ARTIST));
fd->title = g_strdup(sf_get_string(hnd, SF_STR_TITLE));
#ifdef BUILD_SCROBBLER
fd->album = g_strdup(sf_get_string(hnd, SF_STR_ALBUM));
#endif
return (0);
}

0 comments on commit 0ea241f

Please sign in to comment.