Permalink
Browse files

[cosmetic] CDVDAudioCodecPassthroughFFmpeg: fix "switch statement con…

…tains 'default' but no 'case' labels" warnings
  • Loading branch information...
1 parent d9adba7 commit 8702387a7c79882b026aed19b7c5279d3fc9c028 @Montellese Montellese committed Jul 26, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 xbmc/cores/dvdplayer/DVDCodecs/Audio/DVDAudioCodecPassthroughFFmpeg.cpp
@@ -465,11 +465,7 @@ int CDVDAudioCodecPassthroughFFmpeg::GetChannels()
{
//Can't return correct channels here as this is used to keep sync.
//should probably have some other way to find out this
- switch(m_codec)
- {
- default:
- return 2;
- }
+ return 2;
}
int CDVDAudioCodecPassthroughFFmpeg::GetSampleRate()
@@ -642,9 +638,5 @@ CAEChannelInfo CDVDAudioCodecPassthroughFFmpeg::GetChannelMap()
{AE_CH_RAW, AE_CH_RAW, AE_CH_RAW, AE_CH_RAW, AE_CH_RAW, AE_CH_RAW, AE_CH_RAW, AE_CH_RAW, AE_CH_NULL}
};
- switch(m_codec)
- {
- default:
- return map[0];
- }
+ return map[0];
}

0 comments on commit 8702387

Please sign in to comment.