summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Ian Nartowicz <iann@crunchbang>2014-06-05 22:38:24 +0100
committerGravatar Ian Nartowicz <iann@crunchbang>2014-06-05 22:38:24 +0100
commit80f2d9bf73c143f31a44d02c651e96b6e84f1e8b (patch)
treebba8e94c0bced0c81d5bc00c2f8297abc60598b3 /plugins
parent79a4e8c6e305cf4db47c13721418543df945bbc5 (diff)
Conditional compilation of oggedit call
Diffstat (limited to 'plugins')
-rw-r--r--plugins/flac/flac.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c
index c0522352..036301d2 100644
--- a/plugins/flac/flac.c
+++ b/plugins/flac/flac.c
@@ -928,7 +928,7 @@ error:
return err;
}
-
+#if USE_OGGEDIT==1
int
cflac_write_metadata_ogg (DB_playItem_t *it, FLAC__StreamMetadata_VorbisComment *vc)
{
@@ -949,7 +949,7 @@ cflac_write_metadata_ogg (DB_playItem_t *it, FLAC__StreamMetadata_VorbisComment
return 0;
}
-
+#endif
int
cflac_write_metadata (DB_playItem_t *it) {
int err = -1;
@@ -1010,7 +1010,7 @@ cflac_write_metadata (DB_playItem_t *it) {
}
else {
// create new and add to chain
- data = FLAC__metadata_object_new(FLAC__METADATA_TYPE_VORBIS_COMMENT);
+ data = FLAC__metadata_object_new(FLAC__METADATA_TYPE_VORBIS_COMMENT);
if (!data) {
fprintf (stderr, "flac: failed to allocate new vorbis comment block\n");
goto error;
@@ -1160,10 +1160,12 @@ error2:
}
#endif
- if (isogg)
- res = cflac_write_metadata_ogg(it, &data->data.vorbis_comment);
- else
+ if (!isogg)
res = FLAC__metadata_chain_write (chain, 1, 0);
+#if USE_OGGEDIT==1
+ else
+ res = cflac_write_metadata_ogg(it, &data->data.vorbis_comment);
+#endif
if (res) {
trace ("cflac_write_metadata: failed to write tags: code %d\n", res);
goto error;