David Anderson
20b1197753
Merge from mozilla-central.
2012-08-03 18:58:30 -07:00
Ed Morley
7834e2c1f0
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
25a45239b4
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
e3b4b9229b
Bug 773469 - Remove unnecessary layer transactions when using async-video. r=roc
2012-08-10 11:42:53 -04:00
Chris Double
259c04ead2
Bug 759945 - Part 4: MP4 test file - r=cpearce
...
--HG--
extra : rebase_source : 0aa155c4ebc60ddc8afe720161af345c555897a8
2012-08-10 20:15:24 +12:00
Chris Double
d74b5f8a1c
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
bb6001e68d
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
e93ecd8468
Merge from mozilla-central.
2012-08-02 13:47:20 -07:00
Robert O'Callahan
36e9494fb6
Bug 646331. Specify correct duration for 320x240.ogv. r=cpearce
2012-08-03 15:22:24 +12:00
Ed Morley
a9fda23889
Backout ec46cfa51bf8, 4a54f06efee8, de811fbd27b0 & 67ea1314c777 (bug 567077) for causing bug 781141
2012-08-08 13:11:34 +01:00
David Anderson
2e20aecd2c
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
7825395ee4
Bug 779412 - Iterate over correct test array in test_info_leak. r=cpearce
2012-08-01 17:58:09 +12:00
Chris Pearce
ee625140f8
Bug 778105 - Fix an nsOggReader::GetBuffered() return value type mismatch. r=doublec
2012-08-01 13:24:25 +12:00
David Anderson
1b9c00384c
Merge from mozilla-central.
2012-07-31 17:19:41 -07:00
David Anderson
0b6251a780
Merge from mozilla-central.
2012-07-30 13:15:39 -07:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
David Anderson
19fd317fea
Merge from mozilla-central.
2012-07-26 18:19:02 -07:00
David Anderson
43e8426cf2
Merge from mozilla-central.
2012-07-24 16:32:08 -07:00
David Anderson
8769715833
Merge from mozilla-central.
2012-07-23 12:37:49 -07:00
David Anderson
8a0fb8757b
Merge from mozilla-central.
2012-07-20 12:02:04 -07:00
David Anderson
d6601dffce
Merge from mozilla-central.
2012-07-19 14:34:36 -07:00
Ed Morley
e7ea406198
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-07-19 13:25:37 +01:00
David Anderson
5977d0bae2
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
943789da00
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
a2bf606a9d
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-07-18 13:32:24 +01:00
Ms2ger
c41391ca15
Bug 756397 - Enable FAIL_ON_WARNINGS in content/media; r=cpearce
2012-07-18 12:36:08 +02:00
David Zbarsky
7f0f075928
[Bug 774505] Don't include Layers.h everywhere r=cjones
2012-07-18 12:31:40 -04:00
Matthew Gregan
47efc774e3
Bug 761274 - Work around buffer sizing bug in PulseAudio ALSA plugin. r=doublec
2012-07-16 17:15:24 -04:00
Matthew Gregan
fea4fa6a84
Bug 768333 - nsBufferedAudioStream::GetPositionInFrames miscompiled with Win32 PGO. r=cpearce
2012-07-16 17:21:04 -04:00
Matthew Gregan
a0be501c49
Bug 779187 - Fix nsBufferedAudioStream's sample format selection for big endian machines. r=doublec
2012-08-06 15:26:41 +12:00
David Zbarsky
fe804d085c
[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
33a6ecb3a2
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
98cf4c17fa
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
596d3144a5
Merge from mozilla-central.
2012-07-12 13:23:26 -07:00
Anant Narayanan
46105c0425
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
86f0b2a6d8
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
59619ba083
Bug 775134 - Remove extra ; r=ehsan.
...
--HG--
extra : rebase_source : 1d44663679e8f1944649d54608e5e6e6694e88c5
2012-07-18 12:15:47 -04:00
Aryeh Gregor
0c8f5adf50
Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan
2012-07-20 14:16:17 +03:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Matthew Gregan
8c0319a11c
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
Ehsan Akhgari
a6b1e13a2d
Merge mozilla-central into mozilla-inbound
2012-07-19 08:44:19 -04:00
Jacek Caban
6fa45a6330
Bug 472799 - Undefine GetCurrentTime in nsDOMMediaStream.h r=cpearce
2012-07-19 11:58:48 +02:00
Nathan Froyd
5b30baa4c3
Bug 370750 - consolidate mochitest files installation; r=glandium
...
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
David Anderson
2d5c5bdcf3
Merge from mozilla-central.
2012-06-28 15:17:18 -07:00
Chris Pearce
5dca73c48d
Bug 762191 - Make video controls mute/volume widgets do nothing if the video doesn't have audio. r=jaws
2012-06-28 17:31:09 +12:00
David Anderson
4dc2835558
Merge from mozilla-central.
2012-06-27 11:00:48 -07:00
Kan-Ru Chen (陳侃如)
c540b78e4c
Bug 767480 - Remove offset field from PlanarYCbCrImage::Data. r=roc
2012-08-26 00:22:51 -03:00
Ralph Giles
62f6aacafd
Bug 766331 - Don't rescan old data for Ogg timestamps - r=cpearce
...
nsOggReader::RangeEndTime() relied on CRC values from valid ogg
pages to keep track of already-searched data when looking for a
end timestamp. This caused quadratic behaviour searching in a
section of a file with no valid pages.
Instead, remember where we last looked, and backoff immediately
if we go more than the maximum length of a page into previously
scanned data. This avoids searching data we've eliminated as
containing valid Ogg pages and lets us search backward with O(N)
instead.
2012-06-25 09:38:56 -07:00
Robert O'Callahan
b88beb8a39
Bug 771135. Add MediaStreamListener::NotifyPull to give SourceMediaStream generators an easy way to implement pulling data from some source. r=jesup
2012-07-20 12:36:03 -07:00
Anant Narayanan
cd0c2d2c24
Bug 691234: Part 1/3: Move MediaEngine files and tweak interface; r=roc
...
--HG--
rename : content/media/MediaEngine.h => content/media/webrtc/MediaEngine.h
rename : content/media/MediaEngineDefault.cpp => content/media/webrtc/MediaEngineDefault.cpp
rename : content/media/MediaEngineDefault.h => content/media/webrtc/MediaEngineDefault.h
2012-06-19 17:29:43 -07:00
Anant Narayanan
1c485e2a31
Backout 431ab4d097c9, bustage
2012-07-11 21:51:20 -07:00
Anant Narayanan
48dd6d6763
Backout 431ab4d097c9, bustage
2012-07-11 21:45:20 -07:00
Anant Narayanan
23c187f947
Backout 038e89521330, bustage
2012-07-11 21:44:16 -07:00
Anant Narayanan
dcad8dd933
Bug 691234: Part 2/3: Implement WebRTC backend for MediaEngine on Desktop; r=jesup, r=roc
2012-07-11 21:22:24 -07:00
Anant Narayanan
daa09588d5
Bug 691234: Part 1/3: Move MediaEngine files and tweak interface; r=roc
...
--HG--
rename : content/media/MediaEngine.h => content/media/webrtc/MediaEngine.h
rename : content/media/MediaEngineDefault.cpp => content/media/webrtc/MediaEngineDefault.cpp
rename : content/media/MediaEngineDefault.h => content/media/webrtc/MediaEngineDefault.h
2012-06-19 17:29:43 -07:00
Makoto Kato
3f38c4d3bc
Bug 777304 - Don't use freed pointer after destructor of NS_ConvertUTF16toUTF8. r=bsmedberg
2012-07-27 12:13:51 +09:00
Bugmenot
73e7dee094
Bug 777166 - Use CFLAGS from pkgconfig for system libvpx, r=derf
...
From c445b9ab36a0c79aa1be2dfbd91438e994bccb4e Mon Sep 17 00:00:00 2001
---
config/autoconf.mk.in | 2 +-
configure.in | 8 +++++---
content/media/webm/Makefile.in | 2 +-
3 files changed, 7 insertions(+), 5 deletions(-)
2012-07-25 19:54:23 +00:00
David Zbarsky
fa3cb43e08
Bug 778519 - Don't include Layers.h everywhere Part 2 r=cjones
2012-07-30 17:42:26 -07:00
Ralph Giles
619fdc8bf8
Bug 763010 - Add a mochitest for mozGetMetadata(). r=cpearce
...
Add a few Ogg files which have non-trivial tag metadata in their Vorbis streams, and verify they are returned correctly by the media.mozGetMetadata() extention.
Add a file with no comments to test {} output as well.
Verify that mozGetMetadata() throws an InvalidStateError if called immediately, before the loadedmetadata event fires.
2012-07-30 20:14:29 -04:00
Ralph Giles
a81a17e866
Bug 763010 - Expose media element metadata. r=cpearce
...
Implements a media.mozGetMetadata() method returning a new javascript object whose properties are key value pairs respresenting metadata tags from the media resource. This data is available after readystate enters METADATA_LOADED.
Currently this is only implemented for Ogg Vorbis streams.
Media format metadata is parsed out by the media decoders. In the nsCodecStateMachine::ReadMetadata subclasses we fill in an nsDataHashtable pointer using the format-specifc api.
The hash pointer is passed up to the media element as part of the MetadataLoaded event.
The hash is deleted if the load is aborted. The audio metadata is also reset to zero (as in the constructor), resolving a todo comment.
2012-07-30 20:14:29 -04:00
Aryeh Gregor
2e7996f8d1
Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan
2012-07-27 16:59:29 +03:00
Landry Breuil
88d4abfc50
Bug 777696: Fix gstreamer backend on big endian architectures. r=doublec
2012-07-30 17:57:15 +02:00
Ehsan Akhgari
c80897316e
Merge the nullptr conversion from mozilla-central into mozilla-inbound
2012-07-30 10:28:15 -04:00
Aryeh Gregor
17bdf11678
Bug 777292 - Annotate some incorrect conversions to nsresult; r=ehsan
2012-07-27 17:03:25 +03:00
David Anderson
c0d2427d66
Merge from mozilla-central.
...
--HG--
extra : rebase_source : 521cbf2f434cad88106f32be797faae4861afc39
2012-06-25 13:09:36 -07:00
Aryeh Gregor
982100775b
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Matthew Gregan
d4dddbb2a1
Bug 596453 - Fix typo in test_error_on_404.
...
--HG--
extra : rebase_source : b9d8a71051c06a17d59ba321e2c62c095fa917b8
2012-08-24 11:51:37 +12:00
Robert O'Callahan
ef29d2ea89
Bug 779715. Part 8: Make it safe to call MediaInputPort::Destroy after streams at both ends of the port have been destroyed. r=jesup
...
We had problems because we'd call Destroy on a port after calling Destroy on
its streams. This patch makes the port's Destroy ControlMessage not use a stream,
instead we get the stream from the port directly. It also makes us update the
graph's mPortCount only when the port is finally destroyed; this fixes a potential
bug where the current graph could shut down when all streams are removed, before
all ports have been completely destroyed.
--HG--
extra : rebase_source : 3245fa64b79fb8a75c17190f1a4a2af6d42a5012
2012-08-24 00:46:20 +12:00
Robert O'Callahan
b5dc014ed6
Bug 779715. Part 7: Update test_streams_element_capture_reset.html to test new functionality. r=cpearce
...
test_streams_element_capture_reset.html is updated to test that mozCaptureStreamUntilEnded actually stops
capturing when the stream ends. It also tests that seeking and reloading the media resource keep
feeding a mozCaptureStream stream, and feed the right amount of data.
--HG--
extra : rebase_source : 07faf20b8a99b5e7dcdfb27b3a2096fdfd570f45
2012-08-20 16:57:12 +12:00
Robert O'Callahan
9345d39437
Bug 779715. Part 6: Rework capturing MediaStreams from media elements to use TrackUnionStreams. r=cpearce,jesup
...
Moves to a new setup where a decoder manages a single SourceMediaStream internally. Each stream
returned from mozCaptureStream(UntilEnded) is a TrackUnionStream which is fed by the
decoder's SourceMediaStream.
We want the captured streams to be blocked while the media element is not playing. We do that
by blocking any captured stream that has no SourceMediaStream feeding into it, and blocking
any SourceMediaStream while its decoder is not playing.
We arrange for the decoders's PlaybackEnded to be delayed until its SourceMediaStream has
finished according to the media stream graph. This ensures the state of captured media streams
corresponds more closely to the media element state.
--HG--
extra : rebase_source : 3324ff0e9bdce9c71a23c0f5f2032815e9046081
2012-08-01 00:17:22 +12:00
Chris Double
f02292c9f4
Backout bug 730765 Part 3/3
...
--HG--
extra : rebase_source : 2aadbb2419cceeac30bd95484e37ab905525662f
2012-08-24 00:12:53 +12:00
Chris Double
af6a76cff2
Backed out changeset 5583ccdfea18
2012-08-23 22:42:14 +12:00
Chris Peterson
7d31c29958
Bug 785536 - Add PluginHost->GetPref() so platform decoders can query about:config prefs. r=doublec
2012-08-24 14:20:39 -07:00
Robert O'Callahan
99b99a420e
Bug 752796. More logging. r=jesup
2012-06-22 22:51:04 +12:00
Mounir Lamouri
1f70fdd32a
Back out bug 766007, bug 703241 and bug 752796 due to perma-orange (419f0d1b848b to 8661c74deeb5).
2012-06-22 11:13:32 +02:00
Robert O'Callahan
53fe336e33
Bug 752796. Add a bit more logging. r=jesup
2012-06-22 17:07:41 +12:00
Paul Adenot
8a6d5f1515
Bug 761419 - Build failure in content/media/gstreamer/nsGStreamerReader.cpp when using clang r=kinetik
2012-06-21 20:44:39 -04:00
David Anderson
947b7d32c8
Merge from mozilla-central.
...
--HG--
rename : js/xpconnect/src/XPCThreadContext.cpp => js/xpconnect/src/XPCJSContextStack.cpp
2012-06-22 14:26:15 -07:00
David Anderson
2b66c77b6a
Merge from mozilla-central.
...
--HG--
rename : accessible/src/msaa/CAccessibleText.cpp => accessible/src/msaa/ia2AccessibleText.cpp
rename : accessible/src/msaa/CAccessibleText.h => accessible/src/msaa/ia2AccessibleText.h
2012-06-20 17:36:56 -07:00
David Anderson
eb9c7d8ef0
Merge from mozilla-central.
2012-06-15 15:23:58 -07:00
David Anderson
58cb46e7b5
Merge from mozilla-central.
...
--HG--
rename : accessible/src/html/nsHTMLTableAccessible.cpp => accessible/src/html/HTMLTableAccessible.cpp
rename : accessible/src/html/nsHTMLTableAccessible.h => accessible/src/html/HTMLTableAccessible.h
rename : accessible/src/xul/nsXULAlertAccessible.cpp => accessible/src/xul/XULAlertAccessible.cpp
rename : accessible/src/xul/nsXULAlertAccessible.h => accessible/src/xul/XULAlertAccessible.h
rename : accessible/src/xul/nsXULColorPickerAccessible.cpp => accessible/src/xul/XULColorPickerAccessible.cpp
rename : accessible/src/xul/nsXULColorPickerAccessible.h => accessible/src/xul/XULColorPickerAccessible.h
rename : accessible/src/xul/nsXULComboboxAccessible.cpp => accessible/src/xul/XULComboboxAccessible.cpp
rename : accessible/src/xul/nsXULComboboxAccessible.h => accessible/src/xul/XULComboboxAccessible.h
rename : accessible/src/xul/nsXULMenuAccessible.cpp => accessible/src/xul/XULMenuAccessible.cpp
rename : accessible/src/xul/nsXULMenuAccessible.h => accessible/src/xul/XULMenuAccessible.h
rename : accessible/src/xul/nsXULSliderAccessible.cpp => accessible/src/xul/XULSliderAccessible.cpp
rename : accessible/src/xul/nsXULSliderAccessible.h => accessible/src/xul/XULSliderAccessible.h
rename : accessible/src/xul/nsXULTabAccessible.cpp => accessible/src/xul/XULTabAccessible.cpp
rename : accessible/src/xul/nsXULTreeAccessible.cpp => accessible/src/xul/XULTreeAccessible.cpp
rename : accessible/src/xul/nsXULTreeAccessible.h => accessible/src/xul/XULTreeAccessible.h
rename : accessible/src/xul/nsXULTreeGridAccessible.cpp => accessible/src/xul/XULTreeGridAccessible.cpp
rename : accessible/src/xul/nsXULTreeGridAccessible.h => accessible/src/xul/XULTreeGridAccessible.h
2012-06-12 17:44:22 -07:00
Jan de Mooij
b1b68e0f5d
Merge m-c to ionmonkey
...
--HG--
rename : accessible/src/html/nsHTMLSelectAccessible.cpp => accessible/src/html/HTMLSelectAccessible.cpp
rename : accessible/src/html/nsHTMLSelectAccessible.h => accessible/src/html/HTMLSelectAccessible.h
rename : memory/jemalloc/jemalloc.c => memory/mozjemalloc/jemalloc.c
rename : memory/jemalloc/jemalloc.h => memory/mozjemalloc/jemalloc.h
2012-06-08 11:18:39 +02:00
Matthew Gregan
d90bbfc34b
Bug 723860 - Early bail from reader's GetBuffered() if not yet initialized. r=doublec
2012-06-06 17:58:07 +12:00
Paul Adenot
2a87e1ad04
Bug 760336 - Set nsBuiltinDecoderStateMachine::mBufferingWait to be seconds instead of milliseconds r=chris.double
2012-06-07 11:43:25 +12:00
Paul Adenot
0f761e6f39
Bug 761708 - Wrong |played| value when seeking back in the media. r=chris.double
2012-06-07 11:43:13 +12:00
Sean Stangl
03039d2160
Merge m-c to Ionmonkey.
...
--HG--
rename : accessible/src/base/nsBaseWidgetAccessible.h => accessible/src/generic/BaseAccessibles.h
rename : accessible/src/html/nsHTMLImageMapAccessible.cpp => accessible/src/html/HTMLImageMapAccessible.cpp
rename : accessible/src/html/nsHTMLLinkAccessible.cpp => accessible/src/html/HTMLLinkAccessible.cpp
rename : accessible/src/html/nsHTMLLinkAccessible.h => accessible/src/html/HTMLLinkAccessible.h
2012-06-05 16:54:36 -07:00
Ms2ger
f696a656cc
Bug 760156 - Cleanup LOCAL_INCLUDES in content/media/; r=sicking
...
This patch makes it possible to include nsGenericHTMLElement.h without adding
to LOCAL_INCLUDES.
2012-06-06 09:40:02 +02:00
Geoff Lankow
1214b72681
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Sean Stangl
252166a142
Merge m-c to Ionmonkey.
...
--HG--
rename : accessible/src/html/nsHyperTextAccessible.cpp => accessible/src/generic/HyperTextAccessible.cpp
rename : accessible/src/html/nsHyperTextAccessible.h => accessible/src/generic/HyperTextAccessible.h
rename : accessible/src/html/nsHTMLImageAccessible.cpp => accessible/src/generic/ImageAccessible.cpp
rename : accessible/src/html/nsHTMLImageAccessible.h => accessible/src/generic/ImageAccessible.h
rename : accessible/src/msaa/nsHyperTextAccessibleWrap.cpp => accessible/src/msaa/HyperTextAccessibleWrap.cpp
rename : accessible/src/msaa/nsHyperTextAccessibleWrap.h => accessible/src/msaa/HyperTextAccessibleWrap.h
2012-06-04 13:30:29 -07:00
Stephen Moehle
0f2f68b13e
Bug 760899 - Fix debug builds with gstreamer enabled - r=kinetik
...
--HG--
extra : rebase_source : 22598bc470d35d94991ea9f1b14df11ba19a461a
2012-06-05 11:32:36 +12:00
Stephen Moehle
f4cbb185ec
Bug 761030 - Fix crash with HTML 5 video with GStreamer enabled - r=kinetik
...
--HG--
extra : rebase_source : 5e884550f9870bd2fda247d50bebd472e8368588
2012-06-05 11:31:13 +12:00
Sean Stangl
39170a65fe
Merge m-c onto Ionmonkey.
...
--HG--
rename : accessible/src/atk/nsAccessibleWrap.cpp => accessible/src/atk/AccessibleWrap.cpp
rename : accessible/src/atk/nsAccessibleWrap.h => accessible/src/atk/AccessibleWrap.h
rename : accessible/src/atk/nsDocAccessibleWrap.h => accessible/src/atk/DocAccessibleWrap.h
rename : accessible/src/base/nsAccessible.cpp => accessible/src/generic/Accessible.cpp
rename : accessible/src/base/nsAccessible.h => accessible/src/generic/Accessible.h
rename : accessible/src/base/nsDocAccessible.cpp => accessible/src/generic/DocAccessible.cpp
rename : accessible/src/base/nsDocAccessible.h => accessible/src/generic/DocAccessible.h
rename : accessible/src/mac/nsAccessibleWrap.h => accessible/src/mac/AccessibleWrap.h
rename : accessible/src/mac/nsAccessibleWrap.mm => accessible/src/mac/AccessibleWrap.mm
rename : accessible/src/mac/nsDocAccessibleWrap.h => accessible/src/mac/DocAccessibleWrap.h
rename : accessible/src/mac/nsDocAccessibleWrap.mm => accessible/src/mac/DocAccessibleWrap.mm
rename : accessible/src/msaa/nsAccessibleWrap.cpp => accessible/src/msaa/AccessibleWrap.cpp
rename : accessible/src/msaa/nsDocAccessibleWrap.cpp => accessible/src/msaa/DocAccessibleWrap.cpp
rename : accessible/src/msaa/nsTextAccessibleWrap.cpp => accessible/src/msaa/TextLeafAccessibleWrap.cpp
rename : accessible/src/msaa/nsTextAccessibleWrap.h => accessible/src/msaa/TextLeafAccessibleWrap.h
rename : netwerk/protocol/http/SpdySession.cpp => netwerk/protocol/http/SpdySession2.cpp
rename : netwerk/protocol/http/SpdySession.h => netwerk/protocol/http/SpdySession2.h
rename : netwerk/protocol/http/SpdySession.cpp => netwerk/protocol/http/SpdySession3.cpp
rename : netwerk/protocol/http/SpdySession.h => netwerk/protocol/http/SpdySession3.h
rename : netwerk/protocol/http/SpdyStream.cpp => netwerk/protocol/http/SpdyStream2.cpp
rename : netwerk/protocol/http/SpdyStream.cpp => netwerk/protocol/http/SpdyStream3.cpp
2012-05-31 17:17:52 -07:00
Ralph Giles
1945df87b2
Bug 758833 - Track and trim opus preskip samples - r=doublec
...
We trim the initial few samples out of the opus decoder,
to give the output time to converge, and to correct for
the encoding delay. Encoders store the delay in the preskip
field of the Ogg encapsulation header.
The previous code to do this was a hack based on the granulepos
values and could fail on some inputs. Instead, keep a count
of how many samples we want to trip, and remove packet data
until that value matches the preskip value from the header.
The value is set to the preskip value from the header when
the decoder is initialized. We also need to do this after
seek. To do this we add a specialized nsOggReader::ResetDecode
method which takes a boolean argument, set to true when
we are seeking to the start of the stream. In that case,
the method resets the skip count.
There is still an issue after general seeks. The spec recommends
trimming a full 80 ms (3840 frames) to allow the decoder to fully
settle from the previous state. It's tricky to do this inside
nsOpusState because it doesn't know where it is in the stream.
Also add some debug output to track the decode behaviour.
2012-05-31 16:03:14 +12:00
Abhishek Bhatnagar
9d5a0d7a05
Bug 500784 - Video/Audio files over 2^31 bytes now return proper durations; r=cpearce
...
--HG--
extra : rebase_source : 219872db85890a3358456dde226a29595e738f1b
2012-05-31 14:33:15 +12:00
Chris Double
8aee98e28b
Bug 758481 - When seeking in an unbuffered range after having ended a media, networkState is NETWORK_IDLE r=chris.double
...
--HG--
extra : rebase_source : e62887187ed20ad6e832bd0211c50392759bb321
2012-05-31 14:30:23 +12:00
Ed Morley
7d13aab294
Backout 61fd66629c4f, 7c8121f8d3af & 2a2e9cf8fd41 (bug 539356), e31a5e6545d3 (bug 761884), 85fa80bd9792, a284ccb25b83, 2865904db9fc, 34e07b09c426, e9b3d41e0360, cef00ebcd6c8, f943b729ac14 & 783f298401b6 (bug 539356), 330a086f1570 (bug 741682), d80219c8842c (bug 739671), e8c96b4fd4da, 313af486e68d, 0adc41ff56dc, 0cd288a38085, f1d43208825c, 4859876972f3, eec8ef3ebe48, f7f29fcd1845, 6079b229d306, f23c3a7e7ce0, 9824458a41e2 & 6748b5496059 (bug 539356) for mochitest-4 orange & talos regressions on multiple platforms
2012-06-11 10:08:32 +01:00
Matt Woodrow
5076b975a0
Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt
...
* * *
Bug 539356 - Part 9a - Add new display list invalidation API to nsDisplayItem and implement it. r=roc
* * *
Bug 539356 - Part 9b - Add new frame invalidation API. r=roc
* * *
Bug 539356 - Part 9c - Remove old invalidation code. r=bz
* * *
Bug 539356 - Part 9d - Make SVG support the new invalidation model. r=jwatt
* * *
Bug 539356 - Part 9e - FrameLayerBuilder changes for display list invalidation. r=roc
* * *
Bug 539356 - Part 9f - Compute the invalid area of the layer tree and pass this to the widget. r=roc
* * *
Bug 539356 - Part 9g - Modify MozAfterPaint code to work with the new invalidation model. r=roc
2012-06-11 16:45:30 +12:00
Michael Wu
539066cff5
Bug 759013 - Convert more makefiles to use TEST_DIRS, r=khuey
2012-05-27 23:25:22 -04:00
Ehsan Akhgari
aef7f91aa1
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (content parts); r=bzbarsky
...
--HG--
extra : rebase_source : e25a064995914ca4f7b1db16b5725eb440d3e531
2012-06-18 22:30:09 -04:00
David Anderson
54d51b8342
Merge from mozilla-central.
2012-05-23 14:33:15 -07:00
David Anderson
531c35aeaa
Merge from mozilla-central.
2012-05-21 14:40:04 -07:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Joel Maher
02865e954c
Bug 761125 - change mochitests to run all tests except excludedtests in android.json. r=jgriffin
2012-06-14 09:01:23 -04:00
Mounir Lamouri
b8c3ee50da
Backing out bug 738528 pushed without a peer review and with wrong authorship.
2012-06-04 10:57:42 +02:00
Doug Turner
7878db4584
Bug 738528: Android still image for getUserMedia; r=fabrice
2012-05-31 10:28:04 -07:00
Timothy B. Terriberry
ecec43fc18
Bug 750231 - Use larger stacks on the media decoder threads with ASAN, r=kinetik
2012-06-03 12:43:09 -07:00
Anant Narayanan
b15cfc63f1
Bug 752353: DOM bindings for getUserMedia; r=jst
...
--HG--
rename : content/media/nsIDOMMediaStream.idl => dom/media/nsIDOMMediaStream.idl
2012-06-03 00:35:15 -07:00
Anant Narayanan
4d76d2c4fb
Bug 752351: Implement fallback media engine; r=jesup
2012-06-03 00:34:40 -07:00
Anant Narayanan
53849a310c
Bug 750943: Abstract media engine interface for devices; r=jesup
2012-06-03 00:34:02 -07:00
Timothy B. Terriberry
d3be27c800
Bug 752661 - Make ReadMetadata() fail when there are no active Ogg streams, r=kinetik
2012-06-02 06:29:44 -07:00
Mats Palmgren
0beb1b04bd
Bug 760325 - Report all events after 'ended' as test failures, except when removing the element we ignore timeupdate/pause/stalled events. Use info() for logging, not ok(). r=roc
2012-06-01 20:52:37 +02:00
Mats Palmgren
4b7f75a2b4
Bug 759801 - Remove the 'timeupdate' event listener when the test is done. r=philor
2012-06-01 20:52:37 +02:00
David Anderson
1c69f02062
Merge from mozilla-central.
...
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-16 15:39:10 -07:00
Gervase Markham
638c878b13
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
...
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
David Anderson
4a83e6d311
Merge from mozilla-central.
2012-05-15 10:22:19 -07:00
Robert O'Callahan
41e12c9ddd
Bug 750769. Add more logging. r=cpearce
2012-05-15 17:57:29 +12:00
Robert O'Callahan
73b8d69382
Bug 750769. Clarify that mNextState can only be PLAY_STATE_PAUSED or PLAY_STATE_PLAYING. r=cpearce
2012-05-15 17:57:23 +12:00
Robert O'Callahan
3e35dded86
Bug 750769. Clarify thread-safety guarantees around mPlayState and mNextState. r=cpearce
2012-05-15 17:57:17 +12:00
David Anderson
70d6435f79
Merge from mozilla-central.
2012-05-14 12:10:12 -07:00
David Anderson
86bdbdfd58
Merge from mozilla-central.
2012-05-11 14:35:58 -07:00
Christopher De Cairos
c484bd36db
Bug 726904: Make nsVideoFrame::GetVideoIntrinsicSize return the video size before the poster size. r=cpearce
2012-05-11 20:32:15 +12:00
David Anderson
be93786d71
Merge from mozilla-central.
2012-05-10 13:44:10 -07:00
David Anderson
c2de63af87
Merge from mozilla-central.
2012-05-09 12:31:01 -07:00
Randell Jesup
ebb8d15057
Bug 752784: protect against media not having a track of the required type r=roc
2012-05-09 01:53:49 -04:00
David Anderson
6364c530b8
Merge from mozilla-central.
2012-05-08 17:34:07 -07:00
David Anderson
526de59b44
Merge from mozilla-central.
...
--HG--
rename : accessible/src/base/nsRootAccessible.cpp => accessible/src/generic/RootAccessible.cpp
rename : accessible/src/base/nsRootAccessible.h => accessible/src/generic/RootAccessible.h
rename : js/src/jsgcmark.cpp => js/src/gc/Marking.cpp
rename : js/src/jsgcmark.h => js/src/gc/Marking.h
2012-05-04 19:16:35 -07:00
Robert O'Callahan
6e8c450277
Bug 758583. Must acquire SourceMediaStream lock before MediaStreamGraph lock. r=jesup
2012-05-29 21:10:45 +12:00
Robert O'Callahan
4e46ae0fef
Bug 752796. Ensure that stream-finished notifications aren't accidentally dropped. r=jesup
2012-05-28 23:58:34 +12:00
David Anderson
e701dedad3
Merge from mozilla-central.
2012-05-03 11:40:52 -07:00
Ralph Giles
a580b38664
Bug 757600 - Update the Opus version field parser. r=cpearce
...
On 2012 May 10, the Ogg encapsulation spec for Opus at
https://wiki.xiph.org/OggOpus bumped the version number
from zero to one. The one-byte field is also now notionally
split into major and minor subfields, with incompatible
changes signalled by the major field.
We update nsOpusState::DecodeHeader to parse the version
field separately from the stream identification and reject
any stream where the high four bits of the version field
is non-zero.
The opus-tools repo was updated 2012 May 22 to set with
version = 1. This commit enables playback of those files.
2012-05-22 20:21:46 -04:00
Matthew Gregan
af06cd9d7b
Bug 765524 - Register PrefChanged for CUBEB_LATENCY_MS. r=cpearce
2012-06-17 14:13:22 +12:00
David Anderson
6ad5a5ee0c
Merge from mozilla-central.
...
--HG--
rename : accessible/src/atk/nsApplicationAccessibleWrap.cpp => accessible/src/atk/ApplicationAccessibleWrap.cpp
rename : accessible/src/atk/nsApplicationAccessibleWrap.h => accessible/src/atk/ApplicationAccessibleWrap.h
rename : accessible/src/base/nsApplicationAccessible.cpp => accessible/src/generic/ApplicationAccessible.cpp
rename : accessible/src/base/nsApplicationAccessible.h => accessible/src/generic/ApplicationAccessible.h
rename : browser/devtools/webconsole/test/browser_gcli_integrate.js => browser/devtools/shared/test/browser_gcli_integrate.js
rename : browser/devtools/webconsole/test/browser_gcli_web.js => browser/devtools/shared/test/browser_gcli_web.js
rename : security/manager/ssl/src/nsNSSIOLayer.cpp => security/manager/ssl/src/TransportSecurityInfo.cpp
rename : security/manager/ssl/src/nsNSSIOLayer.h => security/manager/ssl/src/TransportSecurityInfo.h
2012-04-30 12:53:32 -07:00
Anant Narayanan
8fbc325351
Bug 738528: Android still image support for getUserMedia r=sicking, r=jesup (plus bustage fix r=jesup)
2012-06-05 08:53:00 -04:00
Benoit Jacob
b9b6ba191f
Bug 759221 - 6/6 - disable failing media tests on Android - r=jmaher
2012-06-08 13:41:45 -04:00
Benoit Jacob
c0d24546d0
Bug 759221 - 2/6 - don't use file URIs in Android mochitests - r=jmaher
2012-06-08 13:41:38 -04:00
Anant Narayanan
4b1afd8829
Backout e8364adb4fd8, build bustage on Android (Bug 738528)
2012-06-08 17:17:52 -07:00
Anant Narayanan
48eea0d084
Bug 738528: Android still image support for getUserMedia; r=sicking, r=jesup
2012-06-05 08:53:00 -07:00
Matt Brubeck
c4a437e09c
Back out bug 759221 and bug 761326 because of media test failures
2012-06-08 12:20:14 -07:00
Benoit Jacob
1ae3924f8a
Bug 759221 - 6/6 - disable failing media tests on Android - r=jmaher
2012-06-08 13:41:45 -04:00
Benoit Jacob
644824e9de
Bug 759221 - 2/6 - don't use file URIs in Android mochitests - r=jmaher
2012-06-08 13:41:38 -04:00
Robert O'Callahan
21d304129c
Bug 750769. Prevent mCurrentFrameTime from advancing during DecodeSeek. r=cpearce
2012-05-22 21:56:02 +12:00
Matthew Gregan
a7e33bf074
Bug 695612 - Make nsRemoteAudioStream::Write block by waiting for acks from its parent. r=doublec
2012-07-02 16:59:43 +12:00
Ehsan Akhgari
6ef72aef93
Backout changeset f568fc280fb0 (bug 539356) because of performance and correctness regressions
2012-07-03 20:24:55 -04:00
David Zbarsky
cd3c58ee76
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Matt Woodrow
1f0dbc7c74
Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt
2012-06-30 15:06:11 +12:00
Matthew Gregan
91f507b9f0
Bug 760364 - Fix comments referring to long-removed audio monitor. r=roc
2012-06-01 18:44:38 +12:00
Matthew Gregan
8b761ae42e
Bug 757707 - Avoid holding nsBufferedAudioStream locks over calls into cubeb. r=roc
2012-06-01 16:45:01 +12:00
Robert O'Callahan
15a11a1162
Bug 759908. Create MediaStreamListener::NotifyConsumptionChanged. r=jesup
...
--HG--
extra : rebase_source : f9479b836ec92170782eb01ea8b97004b057ceb7
2012-06-01 18:26:17 +12:00
Robert O'Callahan
c69e2bcfd2
Bug 750769. Add logging code to dump events for diagnosis. r=cpearce
2012-05-04 17:05:42 +12:00
Ed Morley
6f3226343f
Merge mozilla-central to mozilla-inbound
2012-08-09 12:51:21 +01:00
Robert O'Callahan
17835a1702
Bug 779721. Part 6: Add a flag to track whether the main thread has called Destroy on a stream, and check that flag when sending a message to it. r=jesup
2012-08-09 23:30:09 +12:00
Robert O'Callahan
6622457020
Bug 779721. Part 5: Add a comment explaining more about how MediaStream lifetimes are managed. r=jesup
2012-08-09 23:30:02 +12:00
Robert O'Callahan
7037667a9f
Bug 779721. Part 4: Fix lock ordering inversion when running control messages during a forced shutdown. r=jesup
2012-08-01 00:17:22 +12:00
Robert O'Callahan
c069a47ae8
Bug 779721. Part 3: Don't clean up streams on the MediaGraph thread during a forced shutdown. r=jesup
...
This is actually a better fix for bug 774597. We can rely on main thread code to call
Destroy on all the MediaStreams normally. These Destroy calls can be handled even when the
MediaGraph thread has been shut down, since MediaStreamGraphImpl::AppendMessage will
call RunDuringShutdown on the Destroy messages.
2012-08-09 23:29:47 +12:00
Robert O'Callahan
c9fbc641f1
Bug 779721. Part 2: Don't block a stream just because it has no consumers. r=jesup
...
There is actually no reason to do this.
2012-08-01 00:17:21 +12:00
Robert O'Callahan
78f550e377
Bug 779721. Part 1: Simplify MediaStreamGraph's invariants around when messages are processed. r=jesup
...
Rename mBlockingDecisionsMadeUntilTime to mStateComputedTime. The invariant is that
all graph state is known up to mStateComputedTime but not beyond it (except for some
stream contents that may be buffered beyond it).
Get rid of mMessageAffectedTime and all the code around computing "affected times" and "action times".
Instead, all messages take effect at mStateComputedTime.
Get rid of the two-phase execution of messages. Everything can just happen in a single Run() method.
2012-08-01 00:17:21 +12:00
Paul Adenot
f1f8700189
Bug 567077 - Sniff types of media files that are served with no Content-Type -- Tests r=cpearce
2012-08-07 15:56:25 -07:00
Paul Adenot
73eea5d7e2
Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce
2012-08-07 15:56:01 -07:00
Paul Adenot
5a763d83cf
Bug 567077 - Sniff types of media files that are served with no Content-Type r=cpearce
2012-08-07 15:54:30 -07:00
Paul Adenot
eb3129b6c8
Bug 775319 - Determine the sample format at compile time for all media code. r=kinetik
...
--HG--
extra : rebase_source : 4e8a2a4544895c9234ccd3992e1cafe82b8cf365
2012-08-07 16:01:02 -07:00
Paul Adenot
d8b9c5d56b
Bug 778902 - When a video finished playing, "pause" should be fired, and |paused| should be true. r=cpearce
...
--HG--
extra : rebase_source : 2866707bd6b61d0225952ff49b858011d79e04ed
2012-08-06 10:27:55 -07:00
Paul Adenot
247369a604
Bug 774084 - Fix a crash in nsBuiltinDecoder::GetSeekable. r=kinetik
...
--HG--
extra : rebase_source : f05e051cc9ab850381d138e944f2cc3ea5b3e2f7
2012-07-15 10:57:41 -07:00
David Anderson
33cb582413
Merge from mozilla-central.
...
--HG--
rename : accessible/src/base/nsFormControlAccessible.cpp => accessible/src/generic/FormControlAccessible.cpp
rename : accessible/src/base/nsFormControlAccessible.h => accessible/src/generic/FormControlAccessible.h
rename : accessible/src/html/nsHTMLFormControlAccessible.cpp => accessible/src/html/HTMLFormControlAccessible.cpp
rename : accessible/src/html/nsHTMLFormControlAccessible.h => accessible/src/html/HTMLFormControlAccessible.h
rename : accessible/src/xul/nsXULFormControlAccessible.cpp => accessible/src/xul/XULFormControlAccessible.cpp
rename : accessible/src/xul/nsXULFormControlAccessible.h => accessible/src/xul/XULFormControlAccessible.h
2012-04-18 10:23:31 -07:00
Robert O'Callahan
cd82f78cfb
Bug 784829. Initialize mIsConsumed at the start of every pass to determine what's consumed. r=jesup
...
Also, might as well set mIsConsumed on every stream.
2012-08-29 23:20:45 +12:00
Matthew Gregan
b622e34f64
Bug 742154 - Work around media crashtest shutdown hang in cubeb_winmm. r=cpearce
2012-04-16 15:00:40 +12:00
Matthew Gregan
cfefa73214
Bug 723793 - Lazily initialize libcubeb on first use. r=roc
2012-04-16 15:00:12 +12:00
David Anderson
b02bdc8019
Merge from mozilla-central.
...
--HG--
rename : accessible/src/base/nsOuterDocAccessible.cpp => accessible/src/generic/OuterDocAccessible.cpp
rename : accessible/src/base/nsOuterDocAccessible.h => accessible/src/generic/OuterDocAccessible.h
rename : accessible/tests/mochitest/test_nsOuterDocAccessible.html => accessible/tests/mochitest/test_OuterDocAccessible.html
2012-04-06 16:38:53 -07:00
Randell Jesup
729c0d0f7e
Bug 752087: Use correct method to check is a jsval is an object r=roc
2012-05-07 18:54:29 -04:00
Daniel Holbert
d0c4544c6e
Bug 664918 followup: Add missing */ terminator on emacs modeline in header comment for new file StreamBuffer.cpp. (no review, comment-only) DONTBUILD
2012-05-07 11:22:44 -07:00
Chris Pearce
c59be7944b
Bug 752141 - Release media decoder monitor when finishing audio stream. r=kinetik
2012-05-07 17:12:52 +12:00
Robert O'Callahan
1324bd3eab
Bug 750258. Fix bustage.
2012-05-07 15:57:52 +12:00
Robert O'Callahan
f1d92066fc
Bug 750258. Set intial audio capture state correctly on mDecoderStateMachine. r=cpearce
...
For media resources whose streams are captured before the load has started, we shouldn't even start
an audio thread. This saves a lot of resources and ensures we don't see races between the audio thread
and the code that copies packets from the audio queue to the MediaStreams.
2012-05-07 15:45:06 +12:00
Robert O'Callahan
5aa5e1864b
Bug 750258. Advance mBlockingDecisionsMadeUntilTime to include time lost when the media graph control thread was stopped and all streams had underruns. r=jesup
...
The first part just handles the case where nsAudioStream failed to allocate a stream. It won't be playing
anything, so instead of trying to get the audio position, just fall back to the media graph current time.
Otherwise GetPositionInFrames returns -1 and things go badly from there.
The second part simplifies the calculation of the next mCurrentTime to just make it based on real time.
We had some code to not let it advance past the end of a stream's buffer, but the next part will make that
unnecessary.
The third part is the real fix. When the new current time has advanced past mBlockingDecisionsMadeUntilTime,
that means the control loop didn't run in time to replenish the audio output buffers and keep up with its
other duties. Effectively all streams have been blocked between mBlockingDecisionsMadeUntilTime and
the new current time. Account for that by adding the difference as extra blocked time for every stream.
We only need to ensure that the stream is marked blocked from mBlockingDecisionsMadeUntilTime indefinitely
far into the future, and then update mBlockingDecisionsMadeUntilTime to the new current time, because the
code takes into account that only blocking decisions up to mBlockingDecisionsMadeUntilTime are valid.
2012-05-07 15:44:41 +12:00
Matthew Gregan
d74fbf6059
Bug 747793 - Use a ring buffer for audio buffered by nsBufferedAudioStream. Remove generic sample copy out with volume adjustment and replace with the lightly optimized version from nsNativeAudioStream. Add a fast path for the unity volume case. Bump cubeb's refill thread priority on Win32. r=cpearce
2012-05-03 16:48:54 +12:00
Ralph Giles
e558af769f
Bug 752234 - Guard nsOpusState::Time against inactive streams. r=cpearce
...
Fix a crash loading opus files when the media.opus.enabled pref is
false. The buffering code still tries to call our Time() method,
but without having read the headers we cannot perform the
conversion.
This commit adds a guard on mActive like the other ::Time
methods use.
2012-05-05 09:55:29 -07:00
Robert O'Callahan
4526892060
Fix bustage for bug 755533
2012-05-28 11:08:59 +12:00
Chris Pearce
0c2ab7bae9
Bug 755533 - Ensure we fire canplaythrough if the media's channel is suspended before metadata is loaded. r=roc
2012-05-28 10:40:06 +12:00
David Anderson
bebb7bdc7b
Merge from mozilla-central.
2012-04-03 17:54:29 -07:00
Robert O'Callahan
075f297518
Bug 750163. MediaStreamGraphImpl::UpdateBufferSufficiencyState should skip tracks whose creation is pending --- there is no Track object for them yet. r=jesup
2012-04-30 17:23:00 +12:00
Robert O'Callahan
1e013d242c
Bug 664918. Part 12: Finish SourceMediaStreams when the media decoder is destroyed, to avoid late low-audio/low-video notifications and issues when multiple decoders write to the same stream. r=cpearce,rjesup
2012-04-30 15:13:42 +12:00
Robert O'Callahan
04b6d68bcd
Bug 664918. Part 11: Refactor code around mDecoder->Shutdown() to make following fix easier. r=cpearce
2012-04-30 15:13:09 +12:00
Robert O'Callahan
8198eb7fe3
Bug 664918. Part 10: Add test_streams_element_capture.html to test capturing a media element into a stream and playing that stream through another media element.
...
The test also tests that capturing MediaStream video into a canvas works.
2012-04-30 15:13:01 +12:00
Robert O'Callahan
6959d6762a
Bug 664918. Part 9: Tentative support for MediaStreamListener::NotifyQueuedTrackChanges. r=jesup
2012-04-30 15:12:50 +12:00
Robert O'Callahan
54a29c01d8
Bug 664918. Part 8: Add mozCaptureStream()/mozCaptureStreamUntilEnded() APIs to HTML media elements, returning a MediaStream representing the contents of the media element. r=cpearce,jesup
...
This is currently not fully functional. The MediaStream always ends when the underlying resource ends. You can't use these APIs on a media element
whose src is a MediaStream. Seeking or pausing the resource will cause problems. The media element does not play back in sync with the MediaStream.
2012-04-30 15:12:42 +12:00
Robert O'Callahan
e96832b226
Bug 664918. Part 5: Create SourceMediaStream, a MediaStream with an API allowing data to be injected into it by some source. r=jesup
2012-04-30 15:11:40 +12:00
Robert O'Callahan
1f5dd9a4af
Bug 664918. Part 4: Create nsDOMMediaStream, a DOM object wrapping an underlying MediaStream. r=smaug,jesup
2012-04-30 15:11:34 +12:00
Robert O'Callahan
3e8e91443c
Bug 664918. Part 3: Create MediaStream and MediaGraphManager for internal management of real-time media processing. r=jesup
2012-04-30 15:11:26 +12:00
Robert O'Callahan
d76ff3d562
Bug 664918. Part 2: Create MediaSegment, AudioSegment and VideoSegment classes to manage intervals of media data. r=jesup
...
Also introduces a SharedBuffer class, representing a blob of binary data with threadsafe refcounting.
2012-04-30 15:11:19 +12:00
Robert O'Callahan
9802d67ea6
Bug 664918. Part 1: Create TimeVarying<T> class to represent values that change over time. r=jesup
2012-04-30 15:11:08 +12:00
Robert O'Callahan
1fe7590d18
Bug 664918. Part 0: Refactor nsMediaCache's handling of principals into a helper method in nsContentUtils. r=bzbarsky
2012-04-30 15:11:00 +12:00
Paul ADENOT
70eca6f58d
Bug 480376 - Implement mozHasAudio to indicate when there's no audio track available. r=cpearce
2012-04-28 11:01:10 -04:00
Daniel Holbert
2f25cd6b55
Bug 664918 followup: Add missing */ terminator on emacs modeline in header comment for new files nsDOMMediaStream.cpp and MediaStreamGraph.cpp. (no review, comment-only) DONTBUILD
2012-05-11 10:35:36 -07:00
Masatoshi Kimura
f17f15dabb
Bug 745498 - Add testcases for DOM4 exception types. r=sicking
2012-04-26 09:42:26 -07:00
Nicholas Nethercote
c33177f72e
Bug 744311 (part 1) - Preliminary whitespace and code order changes. r=jlebar.
...
--HG--
extra : rebase_source : f700733d8aa1aed1ae1f9206b4ee9063f9a03341
2012-04-09 22:52:33 -07:00
Paul ADENOT
7404d0fe40
Bug 462960 - Add tests for the played member. r=cpearce
2012-04-30 20:29:29 -04:00
Chris Pearce
ca47762f8f
Bug 741052 - Null check nsMediaCache::mFileCache in nsMediaCache destructor. r=roc
2012-04-02 10:34:11 +12:00
Christopher De Cairos
b9bebb8f08
Bug 736400 - Make each decoder Clone() method check if its mimetype is enabled. r=cpearce
2012-03-30 20:52:07 -04:00
Doug Sherk
c287a8aa3f
Bug 751539: fix test to avoid timeout r=cpearce
2012-05-03 14:12:36 -07:00
Ralph Giles
c7464ef85a
Bug 674225 - Add basic mochitests for Opus. r=cpearce
...
Add a short Ogg Opus file to the content/media/test
directory and add it to the gSeekTests, gSmallTests,
and gPlayTests in manifest.js. This file is crafted
to end on a packet boundary, so trimming to duration
is not verified.
Set the media.opus.enabled pref to true in manifest.js
so the various tests using the opus file succeed.
Add a stanza to can_play_type_ogg.js to test the
behaviour of canPlayType with an opus-specific
media type for both values of the pref.
Add support for the .opus filename extension to
the mochitest http server.
2012-05-01 17:29:42 -07:00
Ralph Giles
daed6b4964
Bug 674225 - Add Opus support to nsOggReader. r=cpearce
...
Parse and decode Opus streams embedded in the Ogg
container. Based on the draft specification from
https://wiki.xiph.org/OggOpus
Support is conditional on the runtime preference
setting media.opus.enabled, which is false by
default until we're confident the spec is stable
and useful.
This patch doesn't support the gain header or
multichannel files.
The LEUint*() functions from the skeleton parser
are used to read the multi-byte header fields.
This requires moving them to earlier in the file.
Mappings for the .opus filename extension are also
added to facilitate testing with local files.
2012-05-01 17:29:34 -07:00
David Anderson
36cbca6efd
Merge from mozilla-central.
2012-03-30 18:40:08 -07:00
David Anderson
41df49806f
Merge from mozilla-central.
...
--HG--
rename : toolkit/components/places/tests/unit/test_favicons.js => toolkit/components/places/tests/favicons/test_favicons.js
2012-03-20 14:43:39 -07:00
Chris Pearce
235c0ed1b6
Bug 736342 - Defer media cache writes and block moves to a non-main thread. r=roc
2012-03-28 13:04:26 +13:00
Chris Pearce
c92e96b48f
Bug 736342 - Add AsyncBlockWriter, which defers file writes to another thread. r=roc
2012-03-28 13:04:20 +13:00
Nathan Froyd
f951079eae
Bug 739962 - fix -Wunused-but-set-variable warnings in content; r=bent
2012-03-28 09:14:33 -04:00
David Anderson
988a7e7cca
Merge from mozilla-central.
...
--HG--
rename : js/src/jsfun.cpp => js/src/vm/ArgumentsObject.cpp
2012-03-19 14:13:34 -07:00
Robert O'Callahan
f7ecbe0c64
Bug 646331. Fix duration of big.wav. r=cpearce
2012-03-19 12:36:06 +13:00
Robert O'Callahan
437f35ed2a
Bug 712836. Make MediaResources which have ended abnormally ineligible for cloning. r=cpearce
2012-03-20 20:55:40 +13:00
David Anderson
ab6d9d70dd
Merge from mozilla-central.
2012-03-13 16:10:05 -07:00
David Anderson
f20e14b269
Merge from mozilla-central.
2012-03-09 13:37:58 -08:00
David Anderson
86c356fa7a
Merge from mozilla-central.
...
--HG--
rename : intl/locale/public/nsICharsetAlias.h => intl/locale/public/nsCharsetAlias.h
rename : intl/locale/src/nsCharsetAliasImp.cpp => intl/locale/src/nsCharsetAlias.cpp
2012-03-05 17:50:51 -08:00
Matthew Gregan
5690270a32
Bug 693021 - Back out the incorrect removal of bug 673698's fixed.
2012-03-05 19:19:45 +13:00
David Anderson
d6d4c65b18
Merge from mozilla-central.
...
--HG--
rename : browser/base/content/syncAddDevice.js => browser/base/content/sync/addDevice.js
rename : browser/base/content/syncAddDevice.xul => browser/base/content/sync/addDevice.xul
rename : browser/base/content/syncNotification.xml => browser/base/content/sync/notification.xml
rename : browser/base/content/syncSetup.js => browser/base/content/sync/setup.js
rename : browser/base/content/syncSetup.xul => browser/base/content/sync/setup.xul
2012-03-01 13:45:48 -08:00
David Anderson
8057bd52d0
Merge from mozilla-central.
2012-02-27 12:40:46 -08:00
Chris Double
cdfcde6a3f
Bug 759948 - libstagefright based media playback doesn't receive ended event when complete on B2G - r=edwin
...
--HG--
extra : rebase_source : a6450eb3a2fbb2ac67e329fa9ef9f0bd9e801e89
2012-06-01 12:54:52 +12:00
Andreas Gal
d3eef34feb
Bug 714408 Part 2 - Media plugin support for libstagefright - r=doublec
...
--HG--
extra : rebase_source : 308d1aab3cfffbb7ddeb0602a3991565603e6212
2012-06-01 12:54:23 +12:00
Timothy B. Terriberry
1dd97a4885
Bug 751219 - Support header gain in Opus files, r=kinetik
2012-05-31 11:13:17 -07:00
Timothy B. Terriberry
27775e1a04
Bug 759612 - Update granule position accounting for Opus, r=kinetik
2012-05-31 11:13:17 -07:00
Timothy B. Terriberry
a8ffafda76
Bug 759399 - Handle preroll correctly during an Opus seek, r=doublec
2012-05-31 11:13:17 -07:00
Timothy B. Terriberry
48f030f55f
Bug 759490 - Use Opus streams when seeking in Ogg, if present, r=doublec
2012-05-31 11:13:11 -07:00
David Anderson
fcdaae22be
Merge from mozilla-central.
2012-02-23 11:35:56 -08:00
David Anderson
1fcc6211a4
Merge from mozilla-central.
2012-02-22 19:25:06 -08:00
Matthew Gregan
9b3f74d365
Bug 634564 - Re-enable test_closing_connections.
2012-02-27 12:51:52 +13:00
Matthew Gregan
b4bd6bbd9d
Bug 634564 - Don't reset load-in-background flag when moving completed media load into the foreground. r=cpearce
2012-02-24 14:07:35 +13:00
David Anderson
1abb45b0aa
Merge from mozilla-central.
2012-02-21 15:08:22 -08:00
Ms2ger
79981b5cf9
Bug 726416 - Fix some content/ build warnings; r=mounir
2012-02-21 10:34:01 +01:00
Matthew Gregan
23eae0d564
Bug 693021 - Bail from AdvanceFrame early if no longer playing. r=cpearce
2012-03-05 15:27:49 +13:00
David Seifried
f3faca678f
Bug 680321 - Media preload state should reset in resource selection algorithm. r=cpearce
2012-02-20 10:02:08 +13:00
Masatoshi Kimura
d99288b6cc
Bug 720208 - Implement DOM4 DOMException types and codes. r=smaug,ms2ger
2012-02-23 01:34:14 +01:00
David Anderson
8b50c1ee36
Merge from mozilla-central.
2012-02-16 15:06:30 -08:00
Robert O'Callahan
dea0c5b319
Bug 727694. Set up new mDecoderStateMachine with any preset initial volume. r=cpearce
2012-02-16 17:17:36 +13:00
David Anderson
7659e2e097
Merge from mozilla-central.
...
--HG--
rename : content/media/nsMediaStream.cpp => content/media/MediaResource.cpp
rename : content/media/nsMediaStream.h => content/media/MediaResource.h
2012-02-15 13:45:39 -08:00
Robert O'Callahan
af2a8aba98
Backing out parts 6 and 7 of bug 779715 (5a87f1d1807d, 5a87f1d1807d) due to crashtest orange.
...
--HG--
extra : rebase_source : bb7acb9958452850bd9d36f8e58f956d065d4935
2012-08-21 00:44:32 +12:00
Robert O'Callahan
b1060b89eb
Bug 779715. Part 7: Update test_streams_element_capture_reset.html to test new functionality. r=cpearce
...
test_streams_element_capture_reset.html is updated to test that mozCaptureStreamUntilEnded actually stops
capturing when the stream ends. It also tests that seeking and reloading the media resource keep
feeding a mozCaptureStream stream, and feed the right amount of data.
--HG--
extra : rebase_source : 6d9e9631516cebbde148d301050c388e0e0019a8
2012-08-20 16:57:12 +12:00
Robert O'Callahan
a6654c40fb
Bug 779715. Part 6: Rework capturing MediaStreams from media elements to use TrackUnionStreams. r=cpearce,jesup
...
Moves to a new setup where a decoder manages a single SourceMediaStream internally. Each stream
returned from mozCaptureStream(UntilEnded) is a TrackUnionStream which is fed by the
decoder's SourceMediaStream.
We want the captured streams to be blocked while the media element is not playing. We do that
by blocking any captured stream that has no SourceMediaStream feeding into it, and blocking
any SourceMediaStream while its decoder is not playing.
We arrange for the decoders's PlaybackEnded to be delayed until its SourceMediaStream has
finished according to the media stream graph. This ensures the state of captured media streams
corresponds more closely to the media element state.
--HG--
extra : rebase_source : a301714fad57a3b7c963530a3da99c54bc8ac436
2012-08-01 00:17:22 +12:00
Robert O'Callahan
15411af0fe
Bug 779715. Part 4: Play all tracks of a media stream with multiple tracks. r=jesup
...
Until now we've identified the "first active track" of a stream and played only that. Instead,
it makes more sense to play all the tracks.
For video, we pick the last track that has a video frame for the current time, and display that.
--HG--
extra : rebase_source : 00ce3eb363df06c292232aa507e861639d10cff2
2012-08-01 00:17:22 +12:00
Robert O'Callahan
750d28ceb3
Bug 779715. Part 3: Add an API to get notifications of changes to the main-thread-visible state of a MediaStream. r=jesup
...
--HG--
extra : rebase_source : 24b7204d219612760b9d159fff5219c1960df51a
2012-08-20 16:20:44 +12:00
Robert O'Callahan
5bc78e2fbe
Bug 779715. Part 2: Create TrackUnionStream. r=jesup
...
--HG--
extra : rebase_source : 29038fa1b93dcade3d762537bf510dc0901a9738
2012-08-01 00:17:21 +12:00
Robert O'Callahan
d3b9aab0ce
Bug 779715. Part 1: Add basic support for ProcessedMediaStreams. r=jesup
...
The main thing this patch does is to add ProcessedMediaStream objects and
MediaInputPorts connecting streams. ProcessedMediaStreams are an abstract
class that doesn't constrain what processing is actually performed, except
that for now we assume a stream's processing depends only on its inputs
window of data between mCurrentTime and mStateComputedTime.
This patch reorganizes the way the blocking status of each stream is computed.
The streams are partitioned into groups so that every stream which can affect
the blocking status of another stream is in the same group as that other stream.
We also add a pass to order the streams by dependency so we can process the streams
in order of dependency; this pass also identifies the streams that form part of a
cycle.
--HG--
extra : rebase_source : c45c931a264e73f295642a934500bbeaa6448774
2012-08-01 00:17:21 +12:00
Matthew Gregan
dfc90699bc
Bug 783940 - Remove unnecessary nsOggDecoderStateMachine class. r=cpearce
2012-08-20 15:59:25 +12:00
Matthew Gregan
c659795e35
Bug 783179 - Remove unused mCbCrSize and mCbCrBuffer members from nsBuiltinDecoderStateMachine. r=doublec
2012-08-16 18:07:26 +12:00
Matt Woodrow
430eb94bb3
Bug 782372 - Fix clang build. r=nical
2012-08-20 14:39:10 +12:00
Matthew Gregan
0c2ee3e831
Bug 780490 - Re-enable test_seek, test_seek_out_of_range, and test_timeupdate_small_files on Linux. (Also bug 780491 and bug 780492). Test only.
2012-08-20 12:10:05 +12:00
Nicolas Silva
54dd2bf57f
Bug 782372 - Splits ImageLayers.h into ImageLayers.h ImageContainer.h and ImageTypes.h, r=bgirard
2012-08-19 15:33:25 -04:00
Chris Jones
95a883e7ed
Bug 776069: Disable remote audio for gonk. Sigh. r=kinetik
2012-08-18 16:14:37 -07:00
Ed Morley
bca60a064f
Bug 608634 - Disable test_error_in_video_document.html for too many intermittent failures; r=philor
2012-08-18 23:59:34 +01:00
Paul Adenot
29b17248c6
Bug 762282 - Don't notify the HTMLMediaElement if we reach the end of the media while seeking for metadata. r=chris.double
2012-08-17 10:01:08 -07:00
Matthew Gregan
c8050b8d35
Bug 782876 - Remove unnecessary returns from event handlers in media tests. r=doublec
2012-08-15 16:41:24 +12:00
Matthew Gregan
d3a4cc2185
Bug 770945 - Simple media events shouldn't be cancelable. r=roc
2012-08-14 15:26:43 +12:00
Robert O'Callahan
ad4c67538b
Bug 726889. Rename nsMediaStream/nsMediaChannelStream/nsMediaFileStream to mozilla::MediaResource/ChannelMediaResource/FileMediaResource. Also rename nsByteRange to mozilla::MediaByteRange and nsChannelStatistics to mozilla::MediaChannelStatistics. Rename GetStream to GetResource and various other mentions of 'stream' to 'resource'. r=cpearce
...
--HG--
rename : content/media/nsMediaStream.cpp => content/media/MediaResource.cpp
rename : content/media/nsMediaStream.h => content/media/MediaResource.h
2012-02-15 17:35:01 +13:00