diff --git a/src/driver/audiometadata.cpp b/src/driver/audiometadata.cpp index 043effd60..c94689be1 100644 --- a/src/driver/audiometadata.cpp +++ b/src/driver/audiometadata.cpp @@ -55,7 +55,10 @@ CAudioMetaData::CAudioMetaData( const CAudioMetaData& src ) : type( src.type ), type_info( src.type_info ), filesize( src.filesize ), bitrate( src.bitrate ), avg_bitrate( src.avg_bitrate ), samplerate( src.samplerate ), - layer( src.layer ), mode( src.mode ), total_time( src.total_time ), +#ifndef ENABLE_FFMPEGDEC + layer( src.layer ), mode( src.mode ), +#endif + total_time( src.total_time ), audio_start_pos( src.audio_start_pos ), vbr( src.vbr ), hasInfoOrXingTag( src.hasInfoOrXingTag ), artist( src.artist ), title( src.title ), album( src.album ), sc_station( src.sc_station ), @@ -78,8 +81,10 @@ void CAudioMetaData::operator=( const CAudioMetaData& src ) bitrate = src.bitrate; avg_bitrate = src.avg_bitrate; samplerate = src.samplerate; +#ifndef ENABLE_FFMPEGDEC layer = src.layer; mode = src.mode; +#endif total_time = src.total_time; audio_start_pos = src.audio_start_pos; vbr = src.vbr; diff --git a/src/driver/audiometadata.h b/src/driver/audiometadata.h index 5d93a4639..3f25fd79e 100644 --- a/src/driver/audiometadata.h +++ b/src/driver/audiometadata.h @@ -36,8 +36,15 @@ #ifndef __AUDIO_METADATA__ #define __AUDIO_METADATA__ +#ifdef HAVE_CONFIG_H +#include +#endif + #include + +#ifndef ENABLE_FFMPEGDEC #include +#endif class CAudioMetaData { @@ -69,8 +76,10 @@ public: unsigned int bitrate; /* overall bitrate, vbr file: current bitrate */ unsigned int avg_bitrate; /* average bitrate in case of vbr file */ unsigned int samplerate; +#ifndef ENABLE_FFMPEGDEC enum mad_layer layer; enum mad_mode mode; +#endif time_t total_time; long audio_start_pos; /* position of first audio frame */ bool vbr;