|
|
8acfe1 |
diff -up mozilla-aurora/config/external/moz.build.remove-ogg mozilla-aurora/config/external/moz.build
|
|
|
8acfe1 |
--- mozilla-aurora/config/external/moz.build.remove-ogg 2014-05-06 13:17:17.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/config/external/moz.build 2014-06-03 13:51:14.450340480 +0200
|
|
|
8acfe1 |
@@ -33,14 +33,15 @@ if CONFIG['MOZ_WEBM_ENCODER']:
|
|
|
8acfe1 |
if CONFIG['MOZ_VPX'] and not CONFIG['MOZ_NATIVE_LIBVPX']:
|
|
|
8acfe1 |
external_dirs += ['media/libvpx']
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+if CONFIG['MOZ_OGG']:
|
|
|
8acfe1 |
+ external_dirs += ['media/libogg', 'media/libtheora']
|
|
|
8acfe1 |
+
|
|
|
8acfe1 |
if not CONFIG['MOZ_NATIVE_PNG']:
|
|
|
8acfe1 |
external_dirs += ['media/libpng']
|
|
|
8acfe1 |
|
|
|
8acfe1 |
external_dirs += [
|
|
|
8acfe1 |
'media/kiss_fft',
|
|
|
8acfe1 |
'media/libcubeb',
|
|
|
8acfe1 |
- 'media/libogg',
|
|
|
8acfe1 |
- 'media/libtheora',
|
|
|
8acfe1 |
'media/libspeex_resampler',
|
|
|
8acfe1 |
'media/libsoundtouch',
|
|
|
8acfe1 |
]
|
|
|
8acfe1 |
diff -up mozilla-aurora/configure.in.remove-ogg mozilla-aurora/configure.in
|
|
|
8acfe1 |
--- mozilla-aurora/configure.in.remove-ogg 2014-05-06 13:17:17.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/configure.in 2014-06-03 13:51:14.452340483 +0200
|
|
|
8acfe1 |
@@ -3938,6 +3938,7 @@ MOZ_FEEDS=1
|
|
|
8acfe1 |
MOZ_WEBAPP_RUNTIME=
|
|
|
8acfe1 |
MOZ_JSDEBUGGER=1
|
|
|
8acfe1 |
MOZ_AUTH_EXTENSION=1
|
|
|
8acfe1 |
+MOZ_OGG=1
|
|
|
8acfe1 |
MOZ_RAW=
|
|
|
8acfe1 |
MOZ_VORBIS=
|
|
|
8acfe1 |
MOZ_TREMOR=
|
|
|
8acfe1 |
@@ -5191,25 +5192,37 @@ fi
|
|
|
8acfe1 |
|
|
|
8acfe1 |
AC_SUBST(MOZ_RAW)
|
|
|
8acfe1 |
|
|
|
8acfe1 |
-dnl Checks for __attribute__(aligned()) directive need by libogg
|
|
|
8acfe1 |
-AC_CACHE_CHECK([__attribute__ ((aligned ())) support],
|
|
|
8acfe1 |
- [ac_cv_c_attribute_aligned],
|
|
|
8acfe1 |
- [ac_cv_c_attribute_aligned=0
|
|
|
8acfe1 |
- CFLAGS_save="${CFLAGS}"
|
|
|
8acfe1 |
- CFLAGS="${CFLAGS} -Werror"
|
|
|
8acfe1 |
- for ac_cv_c_attr_align_try in 64 32 16 8; do
|
|
|
8acfe1 |
- echo "trying $ac_cv_c_attr_align_try"
|
|
|
8acfe1 |
- AC_TRY_COMPILE([],
|
|
|
8acfe1 |
- [static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;],
|
|
|
8acfe1 |
- [ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"])
|
|
|
8acfe1 |
- if test "$ac_cv_c_attribute_aligned" != 0; then
|
|
|
8acfe1 |
- break;
|
|
|
8acfe1 |
- fi
|
|
|
8acfe1 |
- done
|
|
|
8acfe1 |
- CFLAGS="${CFLAGS_save}"])
|
|
|
8acfe1 |
-if test "${ac_cv_c_attribute_aligned}" != "0"; then
|
|
|
8acfe1 |
- AC_DEFINE_UNQUOTED([ATTRIBUTE_ALIGNED_MAX],
|
|
|
8acfe1 |
- [${ac_cv_c_attribute_aligned}],[Maximum supported data alignment])
|
|
|
8acfe1 |
+dnl ========================================================
|
|
|
8acfe1 |
+dnl = Disable Ogg Codecs
|
|
|
8acfe1 |
+dnl ========================================================
|
|
|
8acfe1 |
+MOZ_ARG_DISABLE_BOOL(ogg,
|
|
|
8acfe1 |
+[ --disable-ogg Disable support for OGG media (Theora video and Vorbis audio)],
|
|
|
8acfe1 |
+ MOZ_OGG=,
|
|
|
8acfe1 |
+ MOZ_OGG=1)
|
|
|
8acfe1 |
+
|
|
|
8acfe1 |
+if test -n "$MOZ_OGG"; then
|
|
|
8acfe1 |
+ AC_DEFINE(MOZ_OGG)
|
|
|
8acfe1 |
+
|
|
|
8acfe1 |
+ dnl Checks for __attribute__(aligned()) directive
|
|
|
8acfe1 |
+ AC_CACHE_CHECK([__attribute__ ((aligned ())) support],
|
|
|
8acfe1 |
+ [ac_cv_c_attribute_aligned],
|
|
|
8acfe1 |
+ [ac_cv_c_attribute_aligned=0
|
|
|
8acfe1 |
+ CFLAGS_save="${CFLAGS}"
|
|
|
8acfe1 |
+ CFLAGS="${CFLAGS} -Werror"
|
|
|
8acfe1 |
+ for ac_cv_c_attr_align_try in 64 32 16 8; do
|
|
|
8acfe1 |
+ echo "trying $ac_cv_c_attr_align_try"
|
|
|
8acfe1 |
+ AC_TRY_COMPILE([],
|
|
|
8acfe1 |
+ [static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;],
|
|
|
8acfe1 |
+ [ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"])
|
|
|
8acfe1 |
+ if test "$ac_cv_c_attribute_aligned" != 0; then
|
|
|
8acfe1 |
+ break;
|
|
|
8acfe1 |
+ fi
|
|
|
8acfe1 |
+ done
|
|
|
8acfe1 |
+ CFLAGS="${CFLAGS_save}"])
|
|
|
8acfe1 |
+ if test "${ac_cv_c_attribute_aligned}" != "0"; then
|
|
|
8acfe1 |
+ AC_DEFINE_UNQUOTED([ATTRIBUTE_ALIGNED_MAX],
|
|
|
8acfe1 |
+ [${ac_cv_c_attribute_aligned}],[Maximum supported data alignment])
|
|
|
8acfe1 |
+ fi
|
|
|
8acfe1 |
fi
|
|
|
8acfe1 |
|
|
|
8acfe1 |
dnl ========================================================
|
|
|
8acfe1 |
@@ -5426,7 +5439,7 @@ AC_SUBST(MOZ_NATIVE_LIBVPX)
|
|
|
8acfe1 |
AC_SUBST(MOZ_LIBVPX_CFLAGS)
|
|
|
8acfe1 |
AC_SUBST(MOZ_LIBVPX_LIBS)
|
|
|
8acfe1 |
|
|
|
8acfe1 |
-if test "$MOZ_WEBM"; then
|
|
|
8acfe1 |
+if test "$MOZ_WEBM" -o "$MOZ_OGG"; then
|
|
|
8acfe1 |
if test "$MOZ_SAMPLE_TYPE_FLOAT32"; then
|
|
|
8acfe1 |
MOZ_VORBIS=1
|
|
|
8acfe1 |
else
|
|
|
8acfe1 |
@@ -5533,6 +5546,15 @@ dnl ====================================
|
|
|
8acfe1 |
dnl = Handle dependent MEDIA defines
|
|
|
8acfe1 |
dnl ========================================================
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+if test -n "$MOZ_OPUS" -a -z "$MOZ_OGG"; then
|
|
|
8acfe1 |
+ AC_MSG_ERROR([MOZ_OPUS requires MOZ_OGG which is disabled.])
|
|
|
8acfe1 |
+fi
|
|
|
8acfe1 |
+
|
|
|
8acfe1 |
+if test -n "$MOZ_VORBIS" -a -z "$MOZ_OGG"; then
|
|
|
8acfe1 |
+ AC_MSG_ERROR([MOZ_VORBIS requires MOZ_OGG which is disabled.
|
|
|
8acfe1 |
+Note that you need vorbis support for WebM playback.])
|
|
|
8acfe1 |
+fi
|
|
|
8acfe1 |
+
|
|
|
8acfe1 |
if test -n "$MOZ_VORBIS" -a -n "$MOZ_TREMOR"; then
|
|
|
8acfe1 |
AC_MSG_ERROR([MOZ_VORBIS and MOZ_TREMOR are mutually exclusive! The build system should not allow them both to be set, but they are. Please file a bug at https://bugzilla.mozilla.org/])
|
|
|
8acfe1 |
fi
|
|
|
8acfe1 |
@@ -8842,6 +8864,7 @@ AC_SUBST(MOZ_APPLEMEDIA)
|
|
|
8acfe1 |
AC_SUBST(MOZ_OMX_PLUGIN)
|
|
|
8acfe1 |
AC_SUBST(MOZ_VPX_ERROR_CONCEALMENT)
|
|
|
8acfe1 |
AC_SUBST(MOZ_VPX)
|
|
|
8acfe1 |
+AC_SUBST(MOZ_OGG)
|
|
|
8acfe1 |
AC_SUBST(VPX_AS)
|
|
|
8acfe1 |
AC_SUBST(VPX_ASFLAGS)
|
|
|
8acfe1 |
AC_SUBST(VPX_DASH_C_FLAG)
|
|
|
8acfe1 |
diff -up mozilla-aurora/content/html/content/src/HTMLAudioElement.cpp.remove-ogg mozilla-aurora/content/html/content/src/HTMLAudioElement.cpp
|
|
|
8acfe1 |
--- mozilla-aurora/content/html/content/src/HTMLAudioElement.cpp.remove-ogg 2014-05-06 13:17:19.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/content/html/content/src/HTMLAudioElement.cpp 2014-06-03 13:51:14.452340483 +0200
|
|
|
8acfe1 |
@@ -81,12 +81,16 @@ nsresult HTMLAudioElement::SetAcceptHead
|
|
|
8acfe1 |
#ifdef MOZ_WEBM
|
|
|
8acfe1 |
"audio/webm,"
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
"audio/ogg,"
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_WAVE
|
|
|
8acfe1 |
"audio/wav,"
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
"audio/*;q=0.9,"
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
"application/ogg;q=0.7,"
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
"video/*;q=0.6,*/*;q=0.5");
|
|
|
8acfe1 |
|
|
|
8acfe1 |
return aChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
|
|
|
8acfe1 |
diff -up mozilla-aurora/content/html/content/src/HTMLVideoElement.cpp.remove-ogg mozilla-aurora/content/html/content/src/HTMLVideoElement.cpp
|
|
|
8acfe1 |
--- mozilla-aurora/content/html/content/src/HTMLVideoElement.cpp.remove-ogg 2014-05-06 13:17:19.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/content/html/content/src/HTMLVideoElement.cpp 2014-06-03 13:51:14.452340483 +0200
|
|
|
8acfe1 |
@@ -136,9 +136,13 @@ nsresult HTMLVideoElement::SetAcceptHead
|
|
|
8acfe1 |
#ifdef MOZ_WEBM
|
|
|
8acfe1 |
"video/webm,"
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
"video/ogg,"
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
"video/*;q=0.9,"
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
"application/ogg;q=0.7,"
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
"audio/*;q=0.6,*/*;q=0.5");
|
|
|
8acfe1 |
|
|
|
8acfe1 |
return aChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
|
|
|
8acfe1 |
diff -up mozilla-aurora/content/media/DecoderTraits.cpp.remove-ogg mozilla-aurora/content/media/DecoderTraits.cpp
|
|
|
8acfe1 |
--- mozilla-aurora/content/media/DecoderTraits.cpp.remove-ogg 2014-05-06 13:17:20.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/content/media/DecoderTraits.cpp 2014-06-03 13:51:14.452340483 +0200
|
|
|
8acfe1 |
@@ -13,8 +13,10 @@
|
|
|
8acfe1 |
#include "MediaPluginHost.h"
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
#include "OggDecoder.h"
|
|
|
8acfe1 |
#include "OggReader.h"
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_WAVE
|
|
|
8acfe1 |
#include "WaveDecoder.h"
|
|
|
8acfe1 |
#include "WaveReader.h"
|
|
|
8acfe1 |
@@ -100,6 +102,7 @@ IsRawType(const nsACString& aType)
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
// See http://www.rfc-editor.org/rfc/rfc5334.txt for the definitions
|
|
|
8acfe1 |
// of Ogg media types and codec types
|
|
|
8acfe1 |
static const char* const gOggTypes[4] = {
|
|
|
8acfe1 |
@@ -131,6 +134,7 @@ IsOggType(const nsACString& aType)
|
|
|
8acfe1 |
|
|
|
8acfe1 |
return CodecListContains(gOggTypes, aType);
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
#ifdef MOZ_WAVE
|
|
|
8acfe1 |
// See http://www.rfc-editor.org/rfc/rfc2361.txt for the definitions
|
|
|
8acfe1 |
@@ -199,8 +203,10 @@ IsGStreamerSupportedType(const nsACStrin
|
|
|
8acfe1 |
if (IsWebMType(aMimeType) && !Preferences::GetBool("media.prefer-gstreamer", false))
|
|
|
8acfe1 |
return false;
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
if (IsOggType(aMimeType) && !Preferences::GetBool("media.prefer-gstreamer", false))
|
|
|
8acfe1 |
return false;
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
return GStreamerDecoder::CanHandleMediaType(aMimeType, nullptr);
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
@@ -370,10 +376,12 @@ DecoderTraits::CanHandleMediaType(const
|
|
|
8acfe1 |
result = CANPLAY_MAYBE;
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
if (IsOggType(nsDependentCString(aMIMEType))) {
|
|
|
8acfe1 |
codecList = MediaDecoder::IsOpusEnabled() ? gOggCodecsWithOpus : gOggCodecs;
|
|
|
8acfe1 |
result = CANPLAY_MAYBE;
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_WAVE
|
|
|
8acfe1 |
if (IsWaveType(nsDependentCString(aMIMEType))) {
|
|
|
8acfe1 |
codecList = gWaveCodecs;
|
|
|
8acfe1 |
@@ -479,10 +487,12 @@ InstantiateDecoder(const nsACString& aTy
|
|
|
8acfe1 |
return decoder.forget();
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
if (IsOggType(aType)) {
|
|
|
8acfe1 |
decoder = new OggDecoder();
|
|
|
8acfe1 |
return decoder.forget();
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_WAVE
|
|
|
8acfe1 |
if (IsWaveType(aType)) {
|
|
|
8acfe1 |
decoder = new WaveDecoder();
|
|
|
8acfe1 |
@@ -587,9 +597,11 @@ MediaDecoderReader* DecoderTraits::Creat
|
|
|
8acfe1 |
decoderReader = new RawReader(aDecoder);
|
|
|
8acfe1 |
} else
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
if (IsOggType(aType)) {
|
|
|
8acfe1 |
decoderReader = new OggReader(aDecoder);
|
|
|
8acfe1 |
} else
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_WAVE
|
|
|
8acfe1 |
if (IsWaveType(aType)) {
|
|
|
8acfe1 |
decoderReader = new WaveReader(aDecoder);
|
|
|
8acfe1 |
@@ -642,7 +654,9 @@ MediaDecoderReader* DecoderTraits::Creat
|
|
|
8acfe1 |
bool DecoderTraits::IsSupportedInVideoDocument(const nsACString& aType)
|
|
|
8acfe1 |
{
|
|
|
8acfe1 |
return
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
IsOggType(aType) ||
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_OMX_DECODER
|
|
|
8acfe1 |
// We support amr inside WebApps on firefoxOS but not in general web content.
|
|
|
8acfe1 |
// Ensure we dont create a VideoDocument when accessing amr URLs directly.
|
|
|
8acfe1 |
diff -up mozilla-aurora/content/media/encoder/MediaEncoder.cpp.remove-ogg mozilla-aurora/content/media/encoder/MediaEncoder.cpp
|
|
|
8acfe1 |
--- mozilla-aurora/content/media/encoder/MediaEncoder.cpp.remove-ogg 2014-05-06 13:17:20.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/content/media/encoder/MediaEncoder.cpp 2014-06-03 13:51:14.453340485 +0200
|
|
|
8acfe1 |
@@ -9,7 +9,9 @@
|
|
|
8acfe1 |
#include "prlog.h"
|
|
|
8acfe1 |
#include "mozilla/Preferences.h"
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
#include "OggWriter.h"
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_OPUS
|
|
|
8acfe1 |
#include "OpusTrackEncoder.h"
|
|
|
8acfe1 |
|
|
|
8acfe1 |
@@ -133,6 +135,7 @@ MediaEncoder::CreateEncoder(const nsAStr
|
|
|
8acfe1 |
mimeType = NS_LITERAL_STRING(AUDIO_3GPP);
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
#endif // MOZ_OMX_ENCODER
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
else if (MediaDecoder::IsOggEnabled() && MediaDecoder::IsOpusEnabled() &&
|
|
|
8acfe1 |
(aMIMEType.EqualsLiteral(AUDIO_OGG) ||
|
|
|
8acfe1 |
(aTrackTypes & ContainerWriter::CREATE_AUDIO_TRACK))) {
|
|
|
8acfe1 |
@@ -142,6 +145,7 @@ MediaEncoder::CreateEncoder(const nsAStr
|
|
|
8acfe1 |
NS_ENSURE_TRUE(audioEncoder, nullptr);
|
|
|
8acfe1 |
mimeType = NS_LITERAL_STRING(AUDIO_OGG);
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
+#endif // MOZ_OGG
|
|
|
8acfe1 |
else {
|
|
|
8acfe1 |
LOG(PR_LOG_ERROR, ("Can not find any encoder to record this media stream"));
|
|
|
8acfe1 |
return nullptr;
|
|
|
8acfe1 |
diff -up mozilla-aurora/content/media/MediaDecoder.cpp.remove-ogg mozilla-aurora/content/media/MediaDecoder.cpp
|
|
|
8acfe1 |
--- mozilla-aurora/content/media/MediaDecoder.cpp.remove-ogg 2014-05-06 13:17:20.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/content/media/MediaDecoder.cpp 2014-06-03 13:51:14.453340485 +0200
|
|
|
8acfe1 |
@@ -1653,6 +1653,7 @@ MediaDecoder::IsRawEnabled()
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
bool
|
|
|
8acfe1 |
MediaDecoder::IsOpusEnabled()
|
|
|
8acfe1 |
{
|
|
|
8acfe1 |
@@ -1668,6 +1669,7 @@ MediaDecoder::IsOggEnabled()
|
|
|
8acfe1 |
{
|
|
|
8acfe1 |
return Preferences::GetBool("media.ogg.enabled");
|
|
|
8acfe1 |
}
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
#ifdef MOZ_WAVE
|
|
|
8acfe1 |
bool
|
|
|
8acfe1 |
diff -up mozilla-aurora/content/media/MediaDecoder.h.remove-ogg mozilla-aurora/content/media/MediaDecoder.h
|
|
|
8acfe1 |
--- mozilla-aurora/content/media/MediaDecoder.h.remove-ogg 2014-05-06 13:17:20.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/content/media/MediaDecoder.h 2014-06-03 13:51:14.453340485 +0200
|
|
|
8acfe1 |
@@ -844,8 +844,10 @@ public:
|
|
|
8acfe1 |
static bool IsRawEnabled();
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
static bool IsOggEnabled();
|
|
|
8acfe1 |
static bool IsOpusEnabled();
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
#ifdef MOZ_WAVE
|
|
|
8acfe1 |
static bool IsWaveEnabled();
|
|
|
8acfe1 |
diff -up mozilla-aurora/content/media/moz.build.remove-ogg mozilla-aurora/content/media/moz.build
|
|
|
8acfe1 |
--- mozilla-aurora/content/media/moz.build.remove-ogg 2014-05-06 13:17:20.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/content/media/moz.build 2014-06-03 13:51:14.453340485 +0200
|
|
|
8acfe1 |
@@ -7,7 +7,6 @@
|
|
|
8acfe1 |
PARALLEL_DIRS += [
|
|
|
8acfe1 |
'encoder',
|
|
|
8acfe1 |
'mediasource',
|
|
|
8acfe1 |
- 'ogg',
|
|
|
8acfe1 |
'webaudio',
|
|
|
8acfe1 |
'webvtt'
|
|
|
8acfe1 |
]
|
|
|
8acfe1 |
@@ -17,6 +16,9 @@ TEST_TOOL_DIRS += ['compiledtest']
|
|
|
8acfe1 |
if CONFIG['MOZ_RAW']:
|
|
|
8acfe1 |
PARALLEL_DIRS += ['raw']
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+if CONFIG['MOZ_OGG']:
|
|
|
8acfe1 |
+ PARALLEL_DIRS += ['ogg']
|
|
|
8acfe1 |
+
|
|
|
8acfe1 |
if CONFIG['MOZ_WAVE']:
|
|
|
8acfe1 |
PARALLEL_DIRS += ['wave']
|
|
|
8acfe1 |
|
|
|
8acfe1 |
diff -up mozilla-aurora/layout/media/symbols.def.in.remove-ogg mozilla-aurora/layout/media/symbols.def.in
|
|
|
8acfe1 |
--- mozilla-aurora/layout/media/symbols.def.in.remove-ogg 2014-05-06 13:17:13.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/layout/media/symbols.def.in 2014-06-03 13:51:14.454340486 +0200
|
|
|
8acfe1 |
@@ -145,6 +145,7 @@ cubeb_stream_init
|
|
|
8acfe1 |
cubeb_stream_start
|
|
|
8acfe1 |
cubeb_stream_stop
|
|
|
8acfe1 |
cubeb_stream_get_latency
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
th_comment_clear
|
|
|
8acfe1 |
th_comment_init
|
|
|
8acfe1 |
th_decode_alloc
|
|
|
8acfe1 |
@@ -158,6 +159,7 @@ th_info_init
|
|
|
8acfe1 |
th_packet_isheader
|
|
|
8acfe1 |
th_packet_iskeyframe
|
|
|
8acfe1 |
th_setup_free
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_OPUS
|
|
|
8acfe1 |
opus_decoder_create
|
|
|
8acfe1 |
opus_decoder_destroy
|
|
|
8acfe1 |
diff -up mozilla-aurora/modules/libpref/src/init/all.js.remove-ogg mozilla-aurora/modules/libpref/src/init/all.js
|
|
|
8acfe1 |
--- mozilla-aurora/modules/libpref/src/init/all.js.remove-ogg 2014-05-19 11:43:49.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/modules/libpref/src/init/all.js 2014-06-03 13:51:25.028355239 +0200
|
|
|
8acfe1 |
@@ -212,7 +212,9 @@ pref("media.fragmented-mp4.use-blank-dec
|
|
|
8acfe1 |
#ifdef MOZ_RAW
|
|
|
8acfe1 |
pref("media.raw.enabled", true);
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
pref("media.ogg.enabled", true);
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_OPUS
|
|
|
8acfe1 |
pref("media.opus.enabled", true);
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
diff -up mozilla-aurora/python/mozbuild/mozbuild/mozinfo.py.remove-ogg mozilla-aurora/python/mozbuild/mozbuild/mozinfo.py
|
|
|
8acfe1 |
--- mozilla-aurora/python/mozbuild/mozbuild/mozinfo.py.remove-ogg 2014-05-06 13:17:17.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/python/mozbuild/mozbuild/mozinfo.py 2014-06-03 13:51:25.028355239 +0200
|
|
|
8acfe1 |
@@ -84,6 +84,7 @@ def build_dict(config, env=os.environ):
|
|
|
8acfe1 |
d['tests_enabled'] = substs.get('ENABLE_TESTS') == "1"
|
|
|
8acfe1 |
d['bin_suffix'] = substs.get('BIN_SUFFIX', '')
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+ d['ogg'] = bool(substs.get('MOZ_OGG'))
|
|
|
8acfe1 |
d['webm'] = bool(substs.get('MOZ_WEBM'))
|
|
|
8acfe1 |
d['wave'] = bool(substs.get('MOZ_WAVE'))
|
|
|
8acfe1 |
|
|
|
8acfe1 |
diff -up mozilla-aurora/uriloader/exthandler/nsExternalHelperAppService.cpp.remove-ogg mozilla-aurora/uriloader/exthandler/nsExternalHelperAppService.cpp
|
|
|
8acfe1 |
--- mozilla-aurora/uriloader/exthandler/nsExternalHelperAppService.cpp.remove-ogg 2014-05-06 13:17:27.000000000 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/uriloader/exthandler/nsExternalHelperAppService.cpp 2014-06-03 13:51:25.030355242 +0200
|
|
|
8acfe1 |
@@ -462,6 +462,7 @@ static nsDefaultMimeTypeEntry defaultMim
|
|
|
8acfe1 |
{ "application/xhtml+xml", "xhtml" },
|
|
|
8acfe1 |
{ "application/xhtml+xml", "xht" },
|
|
|
8acfe1 |
{ TEXT_PLAIN, "txt" },
|
|
|
8acfe1 |
+#ifdef MOZ_OGG
|
|
|
8acfe1 |
{ VIDEO_OGG, "ogv" },
|
|
|
8acfe1 |
{ VIDEO_OGG, "ogg" },
|
|
|
8acfe1 |
{ APPLICATION_OGG, "ogg" },
|
|
|
8acfe1 |
@@ -469,6 +470,7 @@ static nsDefaultMimeTypeEntry defaultMim
|
|
|
8acfe1 |
#ifdef MOZ_OPUS
|
|
|
8acfe1 |
{ AUDIO_OGG, "opus" },
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_WEBM
|
|
|
8acfe1 |
{ VIDEO_WEBM, "webm" },
|
|
|
8acfe1 |
{ AUDIO_WEBM, "webm" },
|
|
|
8acfe1 |
diff -up mozilla-aurora/xpcom/build/nsXPComInit.cpp.remove-ogg mozilla-aurora/xpcom/build/nsXPComInit.cpp
|
|
|
8acfe1 |
--- mozilla-aurora/xpcom/build/nsXPComInit.cpp.remove-ogg 2014-06-03 14:04:38.913464144 +0200
|
|
|
8acfe1 |
+++ mozilla-aurora/xpcom/build/nsXPComInit.cpp 2014-06-03 14:06:03.282582245 +0200
|
|
|
8acfe1 |
@@ -133,7 +133,9 @@ extern nsresult nsStringInputStreamConst
|
|
|
8acfe1 |
#include "mozilla/VisualEventTracer.h"
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
+#if MOZ_OGG
|
|
|
8acfe1 |
#include "ogg/ogg.h"
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#if defined(MOZ_VPX) && !defined(MOZ_VPX_NO_MEM_REPORTING)
|
|
|
8acfe1 |
#include "vpx_mem/vpx_mem.h"
|
|
|
8acfe1 |
#endif
|
|
|
8acfe1 |
@@ -378,7 +380,7 @@ private:
|
|
|
8acfe1 |
NS_IMPL_ISUPPORTS(ICUReporter, nsIMemoryReporter)
|
|
|
8acfe1 |
|
|
|
8acfe1 |
/* static */ template<> Atomic<size_t> CountingAllocatorBase<ICUReporter>::sAmount(0);
|
|
|
8acfe1 |
-
|
|
|
8acfe1 |
+#if MOZ_OGG
|
|
|
8acfe1 |
class OggReporter MOZ_FINAL : public nsIMemoryReporter,
|
|
|
8acfe1 |
public CountingAllocatorBase<OggReporter>
|
|
|
8acfe1 |
{
|
|
|
8acfe1 |
@@ -420,7 +422,7 @@ NS_IMPL_ISUPPORTS(VPXReporter, nsIMemory
|
|
|
8acfe1 |
|
|
|
8acfe1 |
/* static */ template<> Atomic<size_t> CountingAllocatorBase<VPXReporter>::sAmount(0);
|
|
|
8acfe1 |
#endif /* MOZ_VPX */
|
|
|
8acfe1 |
-
|
|
|
8acfe1 |
+#endif /* MOZ_OGG */
|
|
|
8acfe1 |
#ifdef MOZ_WEBM
|
|
|
8acfe1 |
class NesteggReporter MOZ_FINAL : public nsIMemoryReporter
|
|
|
8acfe1 |
, public CountingAllocatorBase<NesteggReporter>
|
|
|
8acfe1 |
@@ -606,12 +608,13 @@ NS_InitXPCOM2(nsIServiceManager* *result
|
|
|
8acfe1 |
// depend on the XPCOM-based memory reporting goop. So for now, we have
|
|
|
8acfe1 |
// this oddness.
|
|
|
8acfe1 |
mozilla::SetICUMemoryFunctions();
|
|
|
8acfe1 |
-
|
|
|
8acfe1 |
+#if MOZ_OGG
|
|
|
8acfe1 |
// Do the same for libogg.
|
|
|
8acfe1 |
ogg_set_mem_functions(OggReporter::CountingMalloc,
|
|
|
8acfe1 |
OggReporter::CountingCalloc,
|
|
|
8acfe1 |
OggReporter::CountingRealloc,
|
|
|
8acfe1 |
OggReporter::CountingFree);
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
|
|
|
8acfe1 |
#if defined(MOZ_VPX) && !defined(MOZ_VPX_NO_MEM_REPORTING)
|
|
|
8acfe1 |
// And for VPX.
|
|
|
8acfe1 |
@@ -678,7 +681,9 @@ NS_InitXPCOM2(nsIServiceManager* *result
|
|
|
8acfe1 |
|
|
|
8acfe1 |
// The memory reporter manager is up and running -- register our reporters.
|
|
|
8acfe1 |
RegisterStrongMemoryReporter(new ICUReporter());
|
|
|
8acfe1 |
+#if MOZ_OGG
|
|
|
8acfe1 |
RegisterStrongMemoryReporter(new OggReporter());
|
|
|
8acfe1 |
+#endif
|
|
|
8acfe1 |
#ifdef MOZ_VPX
|
|
|
8acfe1 |
RegisterStrongMemoryReporter(new VPXReporter());
|
|
|
8acfe1 |
#endif
|