diff --git a/src/meta/encrypted.c b/src/meta/encrypted.c index 0de62161..48882329 100644 --- a/src/meta/encrypted.c +++ b/src/meta/encrypted.c @@ -37,8 +37,9 @@ VGMSTREAM* init_vgmstream_encrypted(STREAMFILE* sf) { temp_sf = setup_ogg_vorbis_streamfile(sf, cfg); if (!temp_sf) goto fail; - VGM_LOG("2\n"); +#ifdef VGM_USE_VORBIS vgmstream = init_vgmstream_ogg_vorbis(temp_sf); +#endif close_streamfile(temp_sf); return vgmstream; } @@ -55,7 +56,9 @@ VGMSTREAM* init_vgmstream_encrypted(STREAMFILE* sf) { temp_sf = setup_ogg_vorbis_streamfile(sf, cfg); if (!temp_sf) goto fail; +#ifdef VGM_USE_FFMPEG //TODO: allow MP3 without FFmpeg vgmstream = init_vgmstream_ffmpeg(temp_sf); +#endif close_streamfile(temp_sf); return vgmstream; } diff --git a/src/meta/xnb.c b/src/meta/xnb.c index 6b4e0c67..0b824739 100644 --- a/src/meta/xnb.c +++ b/src/meta/xnb.c @@ -145,7 +145,9 @@ VGMSTREAM* init_vgmstream_xnb(STREAMFILE* sf) { if (!temp_sf) goto fail; if (is_ogg) { +#ifdef VGM_USE_VORBIS vgmstream = init_vgmstream_ogg_vorbis(temp_sf); +#endif } else { vgmstream = init_vgmstream_riff(temp_sf); }