Bug 886196 - Configure option and pref for fragmented mp4 parser. r=glandium

This commit is contained in:
Chris Pearce 2013-11-21 10:04:32 +13:00
parent 02b93b6f1a
commit 863750a7ce
2 changed files with 25 additions and 0 deletions

View File

@ -3942,6 +3942,7 @@ MOZ_OPUS=1
MOZ_WEBM=1
MOZ_DIRECTSHOW=
MOZ_WMF=
MOZ_FMP4=
MOZ_WEBRTC=1
MOZ_PEERCONNECTION=
MOZ_SRTP=
@ -5275,6 +5276,26 @@ if test -n "$MOZ_WMF"; then
MOZ_CUBEB=1
fi;
dnl ========================================================
dnl = Built-in fragmented MP4 support.
dnl ========================================================
if test -n "$MOZ_WMF"; then
dnl Enable fragmented MP4 parser on Windows by default.
dnl We will also need to enable it on other platforms as we implement
dnl platform decoder support there too.
MOZ_FMP4=1
fi
MOZ_ARG_DISABLE_BOOL(fmp4,
[ --disable-fmp4 Disable support for in built Fragmented MP4 parsing],
MOZ_FMP4=,
MOZ_FMP4=1)
if test -n "$MOZ_FMP4"; then
AC_DEFINE(MOZ_FMP4)
fi;
dnl ========================================================
dnl = Enable media plugin support
dnl ========================================================
@ -8627,6 +8648,7 @@ AC_SUBST(MOZ_TREMOR)
AC_SUBST(MOZ_OPUS)
AC_SUBST(MOZ_WEBM)
AC_SUBST(MOZ_WMF)
AC_SUBST(MOZ_FMP4)
AC_SUBST(MOZ_DIRECTSHOW)
AC_SUBST(MOZ_MEDIA_PLUGINS)
AC_SUBST(MOZ_APPLEMEDIA)

View File

@ -196,6 +196,9 @@ pref("media.windows-media-foundation.play-stand-alone", true);
#ifdef MOZ_DIRECTSHOW
pref("media.directshow.enabled", true);
#endif
#ifdef MOZ_FMP4
pref("media.fragmented-mp4.enabled", true);
#endif
#ifdef MOZ_RAW
pref("media.raw.enabled", true);
#endif