Commit Graph

1249 Commits

Author SHA1 Message Date
Ehsan Akhgari
a17cac3016 Bug 788275 - Part 0: Make nsCORSListenerProxy's constructor not cause the object to be destroyed before it is constructed; r=bzbarsky
That is always a nice property to have!
2012-09-18 22:16:23 -04:00
Ralph Giles
f7b40c94e9 Bug 778050 - Support Opus tag metadata. r=derf
Remember parsed comments from the OpusTags header in
an array member variable. Add a method to generate
the nsHTMLMediaElement::MetadataTags hash table from
those entries, performing the same validatation we
do for Vorbis.

This feature is tested by adding the existing opus
test file to gMetadataTests.

IsValidVorbisTagName is moved to a static method
on nsOggCodecState so it can be shared among the
subclasses and easily called externally.

MetadataTags generation for Vorbis streams is moved
to the same method name on nsVorbisState to allow
sharing of the parsing and validation code as much
as possible, since both formats use the same scheme.

It's arguable whether contrustuction better belongs to
nsOggReader or to the nsCodecState subclasses, since in
theory the various multiplexed streams interact in
determining the canonical tag list, but it is the
per-codec streams which contain the metadata in Ogg.
2012-09-17 18:42:36 -04:00
Steve Workman
5d7a8842cc Bug 734546: Changes to nsBuiltinDecoder etc. in prep for nsDASHDecoder etc. r=cpearce 2012-09-17 16:45:38 -04:00
Steve Workman
ac33fb67d7 Bug 782457: Add max offset and cues preloading support to nestegg; r=kinetik 2012-09-17 16:45:38 -04:00
Aryeh Gregor
141b095414 Bug 791213 - Don't return nsresult from a function that returns bool; r=doublec 2012-09-16 12:19:01 +03:00
Ralph Giles
9041e67bc8 Bug 790381 - Remove custom extern "C" on opus_multistream.h. r=derf
Bug 748144 switched our opus decoding to use the
opus_multistream api so we could handle surround
audio files. The version of opus in our tree at
the time didn't include extern "C" {} protection
in the corresponding header, so we had to provide
our own.

With the update to the opus 1.0.0 source release
in bug 790381, this oversight is corrected and
we can remove our work-around.
2012-09-12 16:59:05 -04:00
Ralph Giles
9f35ef22bf Bug 789617 - Test vorbis comment validation. r=cpearce
Add a new test file with some invalid comments and verify
they are filtered out of the mozGetMetadata() output.
The new file includes the following valid edge cases:

 - empty tag name
 - empty tag value
 - punctuation in the tag name

and the following invalid cases:

 - non-ascii tag name
 - invalid characters in tag name
 - non-utf-8 tag value
 - no tag=value separator

Also updates the mochitest messages to be less confusing.
2012-09-10 15:39:23 -07:00
Ralph Giles
44ed4e2811 Bug 789617 - Improve vorbis comment validation. r=cpearce
Verify that tag names are ASCII within the valid character
ranges and that values are UTF-8, skipping comments where
these checks fail.

As written, the check in IsValidVorbisTagName() for the
separator character isn't necessary, because we've already
split on the first occurance. However, it's better to run
the extra check in case the function is reused elsewhere.
2012-09-10 13:49:00 -07:00
Ehsan Akhgari
bf95568d0e Merge IonMonkey into mozilla-inbound 2012-09-11 16:38:44 -04:00
David Anderson
7b438ddde2 Merge IonMonkey to mozilla-central. a=arewefastyet
--HG--
rename : content/base/src/nsWebSocket.cpp => content/base/src/WebSocket.cpp
rename : content/base/src/nsWebSocket.h => content/base/src/WebSocket.h
2012-09-11 10:25:14 -07:00
Rafael Ávila de Espíndola
86f12cace6 Bug 790283 - add newline to the end of two files. r=ehsan. 2012-09-11 13:59:10 -04:00
David Anderson
24145fc9a1 Merge from mozilla-central. 2012-09-10 12:16:38 -07:00
David Anderson
6c5722e35b Merge from mozilla-central. 2012-09-06 18:28:59 -07:00
Ryan VanderMeulen
564bdb74b5 Merge m-c to inbound. 2012-09-05 23:03:09 -04:00
Makoto Kato
c28c020a8f Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza 2012-09-06 11:41:02 +09:00
David Anderson
043ddae94a Merge from mozilla-central.
--HG--
rename : js/jsd/jsd_scpt.c => js/jsd/jsd_scpt.cpp
rename : js/jsd/jsd_stak.c => js/jsd/jsd_stak.cpp
rename : js/jsd/jsd_val.c => js/jsd/jsd_val.cpp
2012-09-05 16:18:11 -07:00
Paul Adenot
1b75b131ca Bug 567077 - Tests for sniffing the types of media files that are served with no Content-Type. r=cpearce 2012-09-04 16:24:34 -07:00
Paul Adenot
1328b09819 Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-09-04 17:49:46 -07:00
Paul Adenot
2719cc62de Bug 567077 - Sniff types of media files that are served with no Content-Type. r=cpearce 2012-09-04 16:22:34 -07:00
David Anderson
25c3dd55c0 Merge from mozilla-central.
--HG--
rename : js/src/sharkctl.cpp => js/src/devtools/sharkctl.cpp
rename : js/src/sharkctl.h => js/src/devtools/sharkctl.h
rename : js/src/MemoryMetrics.cpp => js/src/jsmemorymetrics.cpp
2012-08-29 17:57:37 -07:00
David Anderson
6b403f94c2 Merge from mozilla-central.
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-29 17:51:24 -07:00
Ryan VanderMeulen
07a63bd067 Backout bug 567077 for bustage. 2012-09-05 18:36:38 -04:00
Paul Adenot
fe4b12cd7c Bug 567077 - Tests for sniffing the types of media files that are served with no Content-Type. r=cpearce 2012-09-04 16:24:34 -07:00
Paul Adenot
bdab14e35c Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-09-04 16:24:12 -07:00
Paul Adenot
cce500079e Bug 567077 - Sniff types of media files that are served with no Content-Type. r=cpearce 2012-09-04 16:22:34 -07:00
Paul Adenot
a8a6b828f5 Bug 730765 - Media cache shouldn't be used when loading from blob: urls. r=biesi 2012-09-04 14:53:52 -07:00
Siddharth Agarwal
6e3e5ab3cb Merge mozilla-central to mozilla-inbound. 2012-08-29 20:41:03 +05:30
Ed Morley
8a2d0d11e2 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-29 14:35:19 +01:00
Chris Pearce
ce03c78256 Bug 785909 - Don't init FileMediaResource::mSize on the main thread. r=roc 2012-08-29 15:55:57 +12:00
Matthew Gregan
7f1be93029 Bug 785967 - Reject Wave files with invalid data block size in the format chunk. r=doublec 2012-08-28 18:21:58 +12:00
Ed Morley
2b2533f754 Bug 752796 - Disable test_streams_element_capture{,_reset}.html on Windows for too many timeouts. r=kinetik 2012-08-28 12:59:33 +12:00
David Anderson
188c88907e Merge from mozilla-central. 2012-08-22 16:09:24 -07:00
David Anderson
1ef4c57410 Merge from mozilla-central. 2012-08-21 15:59:12 -07:00
Michael Wu
d165dedcc9 Bug 694484 - OpenSL backend for libcubeb, r=kinetik 2012-09-04 17:45:08 -03:00
Chris Double
90e10cebf3 Bug 783927 - Handle zero length audio reads in stagefright backend to fix audio issues - r=cpeterson 2012-08-21 17:03:21 +12:00
David Zbarsky
fbb04700b6 Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical 2012-08-21 00:06:46 -04:00
David Anderson
6fe112e8bf Merge from mozilla-central. 2012-08-15 14:22:26 -07:00
David Anderson
a31e5baded Merge from mozilla-central. 2012-08-14 12:20:09 -07:00
Ehsan Akhgari
805b10b6d6 Merge removal of nsnull 2012-08-14 11:29:00 -04:00
David Anderson
7ef28ac5ac Merge from mozilla-central. 2012-08-13 13:40:42 -07:00
Aryeh Gregor
6a9cec29c8 Bug 626472 part 3 - Remove nsnull for good; r=ehsan 2012-08-12 13:43:47 +03:00
David Anderson
efd9a9feee Merge from mozilla-central. 2012-08-10 14:50:20 -07:00
Alexandros Chronopoulos
b42d0e9db4 Bug 748144 - Support multichannel Opus files. r=rillian
The Opus audio format supports multichannel (surround) audio, but our initial implementation used a simpler API which only supported mono and stereo output.

To handle these files gracefully, this patch uses the multichannel api and downmixes the output, if possible, to stereo, since we don't currently support surround sound playback.
2012-08-09 15:53:23 -07:00
Honza Bambas
541453729c Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
David Anderson
b620fb6c5c Merge from mozilla-central. 2012-08-09 13:41:13 -07:00
Ed Morley
61bd42dc2d Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-09 12:46:05 +01:00
Ms2ger
26217245c9 Bug 780387 - Part f: Stop using PRBool & PRPackedBool; r=bsmedberg 2012-08-09 09:10:13 +02:00
David Anderson
c9ca5124db Merge from mozilla-central. 2012-08-08 15:09:49 -07:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Paul Adenot
15058d402d Bug 730765 - Media cache shouldn't be used when loading from blob: urls. r=biesi 2012-08-21 16:00:23 -07:00
Ehsan Akhgari
7a743fcc5b Bug 784536 - Use the name of the enum value directly as opposed to access it from the enum's scope; r=dzbarsky 2012-08-21 19:06:50 -04:00
Ryan VanderMeulen
351d01c8ff Backout 3ce94808577b, 56f288230d5a, and 18ff170ecb1f (bug 730765) for bustage. r=fail 2012-08-21 18:45:54 -04:00
Paul Adenot
7751daec1e Bug 730765 - Media cache shouldn't be used when loading from blob: urls. r=biesi 2012-08-15 10:36:12 -07:00
Paul Adenot
9670c86dc2 Bug 775319 - Determine the sample format at compile time for all media code. r=kinetik 2012-08-16 18:10:36 -07:00
Kan-Ru Chen (陳侃如)
cd9d182e06 Bug 767480 - Gralloc backed video buffer. r=roc 2012-08-21 18:22:58 +08:00
Kan-Ru Chen (陳侃如)
f5e3f3d680 Bug 767480 - PlanarYCbCrImage Refactoring. r=roc 2012-08-21 18:18:20 +08:00
Kan-Ru Chen (陳侃如)
22db9a8e93 Back out c8f7bace9cf9, 17ec4e01c126 (bug 767480) r=bustage 2012-08-21 17:55:02 +08:00
Kan-Ru Chen (陳侃如)
2225b447e6 Bug 767480 - Gralloc backed video buffer. r=roc 2012-08-21 14:59:42 +08:00
Kan-Ru Chen (陳侃如)
4787af5685 Bug 767480 - PlanarYCbCrImage refactoring. r=roc 2012-08-21 17:31:36 +08:00
David Anderson
9c45c01c55 Merge from mozilla-central.
--HG--
rename : layout/base/nsFrameTraversal.cpp => layout/base/nsFrameIterator.cpp
rename : layout/base/nsFrameTraversal.h => layout/base/nsFrameIterator.h
rename : browser/modules/WebappsInstaller.jsm => toolkit/webapps/WebappsInstaller.jsm
2012-08-06 12:44:06 -07:00
David Anderson
ac219f63e6 Merge from mozilla-central. 2012-08-03 18:58:30 -07:00
Ed Morley
f55d9d2db2 Bug 760770 - Mark test_timeupdate_small_files.html's "got unexpected stalled after ended" as todo for seek.webm, for frequent intermittent failures; r=cpearce 2012-08-03 11:28:12 +01:00
Ed Morley
1175eb7c52 Bug 620598, Bug 661076 & Bug 687972 - Disable frequently intermittent media tests on Linux; r=cpearce 2012-08-03 11:28:12 +01:00
Nicolas Silva
d0d69183bb Bug 773469 - Remove unnecessary layer transactions when using async-video. r=roc 2012-08-10 11:42:53 -04:00
Chris Double
a398908995 Bug 759945 - Part 4: MP4 test file - r=cpearce
--HG--
extra : rebase_source : 0aa155c4ebc60ddc8afe720161af345c555897a8
2012-08-10 20:15:24 +12:00
Chris Double
4e22a0f0ae Bug 759945 - Part 3: Android OS headers and stub files for software decoding using libstagefright on Android - r=cpearce
--HG--
extra : rebase_source : 0f5b9fed7dac3040a98af6dcc324407c4f8a9772
2012-08-10 20:15:20 +12:00
Chris Double
2e4abce09a Backed out changeset dcb9299974a0 due to audio issues on android and b2g
--HG--
extra : rebase_source : 7e2b937487c3df9a40406eadf250e6596b89664f
2012-08-10 17:30:01 +12:00
David Anderson
ef13f46623 Merge from mozilla-central. 2012-08-02 13:47:20 -07:00
Robert O'Callahan
84ab035abb Bug 646331. Specify correct duration for 320x240.ogv. r=cpearce 2012-08-03 15:22:24 +12:00
Ed Morley
66bb79039e Backout ec46cfa51bf8, 4a54f06efee8, de811fbd27b0 & 67ea1314c777 (bug 567077) for causing bug 781141 2012-08-08 13:11:34 +01:00
David Anderson
bee6a61001 Merge.
--HG--
rename : content/base/src/nsGenericElement.h => content/base/public/FragmentOrElement.h
rename : content/base/src/nsGenericElement.cpp => content/base/src/FragmentOrElement.cpp
rename : gfx/thebes/nsCoreAnimationSupport.mm => gfx/2d/QuartzSupport.mm
2012-08-01 11:30:00 -07:00
Matthew Gregan
fc44cc213c Bug 779412 - Iterate over correct test array in test_info_leak. r=cpearce 2012-08-01 17:58:09 +12:00
Chris Pearce
1448181589 Bug 778105 - Fix an nsOggReader::GetBuffered() return value type mismatch. r=doublec 2012-08-01 13:24:25 +12:00
David Anderson
9929d37fcc Merge from mozilla-central. 2012-07-31 17:19:41 -07:00
David Anderson
644c651c3e Merge from mozilla-central. 2012-07-30 13:15:39 -07:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
David Anderson
88ed1ce560 Merge from mozilla-central. 2012-07-26 18:19:02 -07:00
David Anderson
5fc5a16b63 Merge from mozilla-central. 2012-07-24 16:32:08 -07:00
David Anderson
10352157a6 Merge from mozilla-central. 2012-07-23 12:37:49 -07:00
David Anderson
7b87cb9a76 Merge from mozilla-central. 2012-07-20 12:02:04 -07:00
David Anderson
180cbd4d9d Merge from mozilla-central. 2012-07-19 14:34:36 -07:00
Ed Morley
c7736aea1d Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-19 13:25:37 +01:00
David Anderson
921bd834c9 Merge from mozilla-central.
--HG--
rename : js/xpconnect/wrappers/CrossOriginWrapper.cpp => js/xpconnect/wrappers/WaiveXrayWrapper.cpp
rename : js/xpconnect/wrappers/CrossOriginWrapper.h => js/xpconnect/wrappers/WaiveXrayWrapper.h
2012-07-18 19:02:32 -07:00
Bobby Holley
364da93593 Bug 778420 - Fix up tests that don't like the new enablePrivilege. r=jmaher
--HG--
extra : rebase_source : 1158df4a4eb917074204e649efd8f2b8e699f115
2012-08-03 22:19:54 +02:00
Ed Morley
ab4a6323cd Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-18 13:32:24 +01:00
Ms2ger
1a4b2fb61b Bug 756397 - Enable FAIL_ON_WARNINGS in content/media; r=cpearce 2012-07-18 12:36:08 +02:00
David Zbarsky
88371b030a [Bug 774505] Don't include Layers.h everywhere r=cjones 2012-07-18 12:31:40 -04:00
Matthew Gregan
9ae4b13c59 Bug 761274 - Work around buffer sizing bug in PulseAudio ALSA plugin. r=doublec 2012-07-16 17:15:24 -04:00
Matthew Gregan
0d47132a00 Bug 768333 - nsBufferedAudioStream::GetPositionInFrames miscompiled with Win32 PGO. r=cpearce 2012-07-16 17:21:04 -04:00
Matthew Gregan
e274db737a Bug 779187 - Fix nsBufferedAudioStream's sample format selection for big endian machines. r=doublec 2012-08-06 15:26:41 +12:00
David Zbarsky
d50e4a7565 [Bug 780428] Don't include nsIFrame.h in places where it's not necessary r=roc 2012-08-05 23:00:56 -04:00
Oleg Romashin
999917220b Bug 775257 - Gstreamer backend on Meego N9 produce extra noise in audio playback.r=giles 2012-07-18 22:46:11 -04:00
Robert O'Callahan
0be0d048a2 Bug 774597. Avoid accessing MediaStreamGraphImpl members after the graph object may have been cleaned up by the main thread. r=jesup
--HG--
extra : rebase_source : 5f6c34855ad5df629c25d4b11f008b03cf2266ae
2012-07-18 01:02:06 -04:00
David Anderson
b93d6b9c04 Merge from mozilla-central. 2012-07-12 13:23:26 -07:00
Anant Narayanan
e91b26162f Bug 691234: Part 2/3: Implement WebRTC backend for MediaEngine on Desktop; r=jesup, r=roc 2012-07-12 04:53:08 -07:00
David Anderson
56d1e29054 Merge from mozilla-central.
--HG--
rename : editor/libeditor/base/DeleteElementTxn.cpp => editor/libeditor/base/DeleteNodeTxn.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicBuffers.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicBuffers.h
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicCanvasLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicColorLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicContainerLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicContainerLayer.h
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicImageLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicLayerManager.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicLayersImpl.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicLayersImpl.h
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicThebesLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicThebesLayer.h
rename : js/src/jsobj.cpp => js/src/builtin/Eval.cpp
2012-07-10 19:45:14 -07:00
Rafael Ávila de Espíndola
6fa6b984a6 Bug 775134 - Remove extra ; r=ehsan.
--HG--
extra : rebase_source : 1d44663679e8f1944649d54608e5e6e6694e88c5
2012-07-18 12:15:47 -04:00
Aryeh Gregor
e57dd159b2 Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan 2012-07-20 14:16:17 +03:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Matthew Gregan
68e63d3ddc Bug 775170 - Use naming convention from coding style guide for static member of StateMachineTracker. r=doublec
--HG--
extra : rebase_source : 4dacfc1e600fe1ba00c16a235032f7e52a1cd10a
2012-07-18 13:26:24 -04:00