Bug 1235503 - Fix -Wunreachable-code warnings in dom/media/. r=jya

dom/media/DecoderTraits.cpp:314:10 [-Wunreachable-code-return] 'return' will never be executed
dom/media/DecoderTraits.cpp:324:10 [-Wunreachable-code-return] 'return' will never be executed
This commit is contained in:
Chris Peterson 2015-12-28 00:11:26 -07:00
parent 43bc87df8a
commit 702f1619f7

View File

@ -310,8 +310,9 @@ DecoderTraits::IsMP4TypeAndEnabled(const nsACString& aType)
{
#ifdef MOZ_FMP4
return IsMP4SupportedType(aType);
#endif
#else
return false;
#endif
}
static bool
@ -320,8 +321,9 @@ IsMP3SupportedType(const nsACString& aType,
{
#ifdef MOZ_OMX_DECODER
return false;
#endif
#else
return MP3Decoder::CanHandleMediaType(aType, aCodecs);
#endif
}
static bool