mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
43bc87df8a
commit
702f1619f7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user