* [gentoo-commits] gentoo-x86 commit in www-client/firefox/files: firefox-14.0_beta7-gst-youtube-h264.patch firefox-14.0_beta7-gst-aac-mp3.patch
@ 2012-07-18 0:49 Jory Pratt (anarchy)
0 siblings, 0 replies; only message in thread
From: Jory Pratt (anarchy) @ 2012-07-18 0:49 UTC (permalink / raw
To: gentoo-commits
anarchy 12/07/18 00:49:25
Added: firefox-14.0_beta7-gst-youtube-h264.patch
firefox-14.0_beta7-gst-aac-mp3.patch
Log:
Security update, modify 10.0.5 for changes to mozconfig-3.eclass
(Portage version: 2.1.11.7/cvs/Linux x86_64)
Revision Changes Path
1.1 www-client/firefox/files/firefox-14.0_beta7-gst-youtube-h264.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox-14.0_beta7-gst-youtube-h264.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox-14.0_beta7-gst-youtube-h264.patch?rev=1.1&content-type=text/plain
Index: firefox-14.0_beta7-gst-youtube-h264.patch
===================================================================
diff -urNp mozilla-aurora-7f3c5dd8e78f.old/content/html/content/public/nsHTMLMediaElement.h mozilla-aurora-7f3c5dd8e78f/content/html/content/public/nsHTMLMediaElement.h
--- mozilla-aurora-7f3c5dd8e78f.old/content/html/content/public/nsHTMLMediaElement.h 2012-06-04 11:48:14.664990120 +0530
+++ mozilla-aurora-7f3c5dd8e78f/content/html/content/public/nsHTMLMediaElement.h 2012-06-04 11:48:43.970988893 +0530
@@ -307,7 +307,7 @@ public:
static bool IsH264Type(const nsACString& aType);
static bool IsSupportedAudioType(const nsACString& aType);
static const char gH264Types[3][17];
- static char const *const gH264Codecs[6];
+ static char const *const gH264Codecs[7];
static const char gSupportedAudioTypes[2][11];
#endif
diff -urNp mozilla-aurora-7f3c5dd8e78f.old/content/html/content/src/nsHTMLMediaElement.cpp mozilla-aurora-7f3c5dd8e78f/content/html/content/src/nsHTMLMediaElement.cpp
--- mozilla-aurora-7f3c5dd8e78f.old/content/html/content/src/nsHTMLMediaElement.cpp 2012-06-04 11:48:14.667990120 +0530
+++ mozilla-aurora-7f3c5dd8e78f/content/html/content/src/nsHTMLMediaElement.cpp 2012-06-04 11:49:18.261987460 +0530
@@ -1856,8 +1856,9 @@ const char nsHTMLMediaElement::gH264Type
"video/quicktime",
};
-char const *const nsHTMLMediaElement::gH264Codecs[6] = {
+char const *const nsHTMLMediaElement::gH264Codecs[7] = {
"avc1.42E01E",
+ "avc1.42001E",
"avc1.58A01E",
"avc1.4D401E",
"avc1.64001E",
1.1 www-client/firefox/files/firefox-14.0_beta7-gst-aac-mp3.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox-14.0_beta7-gst-aac-mp3.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox-14.0_beta7-gst-aac-mp3.patch?rev=1.1&content-type=text/plain
Index: firefox-14.0_beta7-gst-aac-mp3.patch
===================================================================
diff -urNp mozilla-aurora-7f3c5dd8e78f.old/content/html/content/public/nsHTMLMediaElement.h mozilla-aurora-7f3c5dd8e78f/content/html/content/public/nsHTMLMediaElement.h
--- mozilla-aurora-7f3c5dd8e78f.old/content/html/content/public/nsHTMLMediaElement.h 2012-06-04 11:37:25.791017257 +0530
+++ mozilla-aurora-7f3c5dd8e78f/content/html/content/public/nsHTMLMediaElement.h 2012-06-04 11:38:22.259014896 +0530
@@ -305,8 +305,10 @@ public:
#ifdef MOZ_GSTREAMER
static bool IsH264Enabled();
static bool IsH264Type(const nsACString& aType);
+ static bool IsSupportedAudioType(const nsACString& aType);
static const char gH264Types[3][17];
static char const *const gH264Codecs[6];
+ static const char gSupportedAudioTypes[2][11];
#endif
/**
diff -urNp mozilla-aurora-7f3c5dd8e78f.old/content/html/content/src/nsHTMLMediaElement.cpp mozilla-aurora-7f3c5dd8e78f/content/html/content/src/nsHTMLMediaElement.cpp
--- mozilla-aurora-7f3c5dd8e78f.old/content/html/content/src/nsHTMLMediaElement.cpp 2012-06-04 11:37:25.834017256 +0530
+++ mozilla-aurora-7f3c5dd8e78f/content/html/content/src/nsHTMLMediaElement.cpp 2012-06-04 11:40:04.358010627 +0530
@@ -1865,6 +1865,11 @@ char const *const nsHTMLMediaElement::gH
nsnull
};
+const char nsHTMLMediaElement::gSupportedAudioTypes[2][11] = {
+ "audio/mp4",
+ "audio/mpeg",
+};
+
bool
nsHTMLMediaElement::IsH264Enabled()
{
@@ -1886,6 +1891,18 @@ nsHTMLMediaElement::IsH264Type(const nsA
return false;
}
+
+bool
+nsHTMLMediaElement::IsSupportedAudioType(const nsACString& aType)
+{
+ for (PRUint32 i = 0; i < ArrayLength(gSupportedAudioTypes); ++i) {
+ if (aType.EqualsASCII(gSupportedAudioTypes[i])) {
+ return true;
+ }
+ }
+
+ return false;
+}
#endif
/* static */
@@ -1919,6 +1936,11 @@ nsHTMLMediaElement::CanHandleMediaType(c
#endif
#ifdef MOZ_GSTREAMER
+ if (IsSupportedAudioType(nsDependentCString(aMIMEType))) {
+ *aCodecList = NULL;
+ return CANPLAY_MAYBE;
+ }
+
if (IsH264Type(nsDependentCString(aMIMEType))) {
*aCodecList = gH264Codecs;
return CANPLAY_YES;
@@ -1992,7 +2014,8 @@ nsHTMLMediaElement::GetCanPlay(const nsA
while (tokenizer.hasMoreTokens()) {
const nsSubstring& token = tokenizer.nextToken();
- if (!CodecListContains(supportedCodecs, token)) {
+ if (supportedCodecs == NULL ||
+ !CodecListContains(supportedCodecs, token)) {
// Totally unsupported codec
return CANPLAY_NO;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-18 0:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18 0:49 [gentoo-commits] gentoo-x86 commit in www-client/firefox/files: firefox-14.0_beta7-gst-youtube-h264.patch firefox-14.0_beta7-gst-aac-mp3.patch Jory Pratt (anarchy)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox