Fix for MSVC warning about ambiguous usage of MIN

svn-id: r34299
This commit is contained in:
Filippos Karapetis 2008-09-03 10:10:45 +00:00
parent 4019bb3e37
commit 2d36c08d9f

View File

@ -149,7 +149,7 @@ public:
bool isStreamDecoderReady() const { return getStreamDecoderState() == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC ; }
protected:
uint getChannels() const { return MIN(_streaminfo.channels, MAX_OUTPUT_CHANNELS); }
uint getChannels() const { return MIN<uint>(_streaminfo.channels, MAX_OUTPUT_CHANNELS); }
bool allocateBuffer(uint minSamples);