From ecd9dd81eabf8d798c18c2134c5796cd42309136 Mon Sep 17 00:00:00 2001 From: cc9cii Date: Fri, 12 Sep 2014 08:41:33 +1000 Subject: [PATCH] Moved debug statements before exception.. --- apps/openmw/mwsound/ffmpeg_decoder.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/openmw/mwsound/ffmpeg_decoder.cpp b/apps/openmw/mwsound/ffmpeg_decoder.cpp index 95c4e9c5c9..40ea85fcb4 100644 --- a/apps/openmw/mwsound/ffmpeg_decoder.cpp +++ b/apps/openmw/mwsound/ffmpeg_decoder.cpp @@ -343,6 +343,11 @@ void FFmpeg_Decoder::getInfo(int *samplerate, ChannelConfig *chans, SampleType * if(mOutputSampleFormat != AV_SAMPLE_FMT_NONE) { +// FIXME: debug output +//#if 0 + std::cout << "channel_layout: " + std::to_string((*mStream)->codec->channel_layout) << std::endl; + std::cout << "in_channels: " + std::to_string((*mStream)->codec->channels) << std::endl; +//#endif mSwr = swr_alloc_set_opts(mSwr, // SwrContext (*mStream)->codec->channel_layout, // output ch layout mOutputSampleFormat, // output sample format @@ -357,11 +362,6 @@ void FFmpeg_Decoder::getInfo(int *samplerate, ChannelConfig *chans, SampleType * if(swr_init(mSwr) < 0) fail(std::string("Couldn't initialize SwrContext")); -// FIXME: debug output -//#if 0 - std::cout << "channel_layout: " + std::to_string((*mStream)->codec->channel_layout) << std::endl; - std::cout << "in_channels: " + std::to_string((*mStream)->codec->channels) << std::endl; -//#endif } }