mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 16:53:55 +00:00
Moved debug statements before exception..
This commit is contained in:
parent
ce3077c970
commit
ecd9dd81ea
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue