diff --git a/toolkit/components/mediasniffer/nsMediaSniffer.cpp b/toolkit/components/mediasniffer/nsMediaSniffer.cpp index 88e7544431f..e8487a07a5e 100644 --- a/toolkit/components/mediasniffer/nsMediaSniffer.cpp +++ b/toolkit/components/mediasniffer/nsMediaSniffer.cpp @@ -10,7 +10,9 @@ #include "nsString.h" #include "nsMimeTypes.h" #include "mozilla/ModuleUtils.h" +#ifdef MOZ_WEBM #include "nestegg/nestegg.h" +#endif #include "nsIClassInfoImpl.h" #include @@ -68,7 +70,11 @@ static bool MatchesMP4(const uint8_t* aData, const uint32_t aLength) static bool MatchesWebM(const uint8_t* aData, const uint32_t aLength) { +#ifdef MOZ_WEBM return nestegg_sniff((uint8_t*)aData, aLength) ? true : false; +#else + return false; +#endif } NS_IMETHODIMP