Edwin Flores
d3bddb14f8
Bug 1134434 - Fix bustage on a CLOSED TREE - r=bustage
2015-03-23 16:44:20 +13:00
Edwin Flores
9a9b42ccdf
Bug 1134434 - Fire loadedmetadata before encrypted event on encrypted MP4s - r=cpearce
2015-03-23 15:31:15 +13:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
dc24477d79
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Phil Ringnalda
0400bc353a
Back out 59fd15407a79 (bug 1142336) for shutdown hangs
...
CLOSED TREE
2015-03-18 20:38:43 -07:00
Bobby Holley
7afd45ea42
Bug 1142336 - Create one unified thread pool for media code and run the MDSM task queues on it. r=mattwoodrow
...
This allows for parallel MDSM execution. \o/
2015-03-18 18:00:49 -07:00
Jean-Yves Avenard
c9bc9c96bd
Bug 1128332: Part3. Re-attempt to decode from last failed position. r=mattwoodrow
...
--HG--
extra : rebase_source : e583e0255e21c32f5d35a97d17f4dec92e2ba10c
2015-03-18 14:10:58 +11:00
Jean-Yves Avenard
44a39a5316
Bug 1128332: Part2. Don't consider decoding error as fatal. r=mattwoodrow
...
A decoding error may be temporary. In particular should the range removal
algorithm be called while attempting to demux frames about to be evicted.
--HG--
extra : rebase_source : 0bc4f1a3a2eb389c6f4735614a1d4fdf0c850f49
2015-03-18 14:10:58 +11:00
Jean-Yves Avenard
9b95bf6cfe
Bug 1128332: Part1. Add useful informations to logging. r=mattwoodrow
...
--HG--
extra : rebase_source : ace658fb62ed051b63852c7f991c0a603e83d9c3
2015-03-18 14:10:58 +11:00
Jean-Yves Avenard
77358caae1
Bug 1143514: Update mochitest. r=cajbir
...
sourcebuffer is added to ms.activeSourceBuffers only once the first init
segment has been appended.
--HG--
extra : rebase_source : fe1bfedce8aa377914be6ea99579e3267da760d5
2015-03-18 14:10:57 +11:00
Jean-Yves Avenard
2bc6b14368
Bug 1143514: Part1. Only add sourcebuffer to ActiveSourceBuffers once active. r=cajbir
...
--HG--
extra : rebase_source : 766249adc3b7a3cbb4aa63c24aaefbe855c121fd
2015-03-18 14:10:56 +11:00
Daniel Holbert
082fd9cd7f
Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
...
This patch was generated by a script. Here's the source of the script for
future reference:
find . \( -iname "*.cpp" -o -iname "*.h" \) | \
xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Bobby Holley
ca9369a50d
Bug 1141785 - Force all audio samples to be keyframes. r=k17e
2015-03-15 21:29:55 -07:00
Matt Woodrow
10ced0676b
Bug 1131638 - Disable hardware decoding if too many frames are invalid. r=cpearce
2015-03-12 22:14:51 +13:00
Chris Pearce
290ac2d4af
Bug 1131387 - Enable EME, update whitelist. r=kentuckyfriedtakahe
2015-03-09 16:24:26 +13:00
Chris Pearce
e49356bdaf
Bug 1131387 - Rename MSE whitelist pref. r=kentuckyfriedtakahe
2015-03-09 16:24:21 +13:00
Jean-Yves Avenard
3a14d38778
Bug 1128380: Make AmpleVideoFrames calculation dynamic. r=cpearce
2015-03-09 14:17:30 +11:00
Chris Pearce
4dd06c566c
Bug 1140947 - Correct some logging in SourceBufferResource.cpp. r=cajbir
2015-03-09 15:38:33 +13:00
Jean-Yves Avenard
ec19ab2505
Bug 1139380: Ensure all queued tasks are aborted when shutting down. r=cpearce
2015-03-06 16:49:00 +11:00
Bobby Holley
774e705988
Bug 1093980 - Rewrite test_FrameSelection to avoid assuming that resizes will always be processed before firing 'seeked'. rpending=mattwoodrow
...
Nothing in the spec says this should hold, and it holds less often when we move
invalidation to happen at the end of seeking.
2015-03-06 19:17:32 -08:00
Bobby Holley
845ad750dc
Bug 1135170 - Stop updating playback position from Ogg seek and remove MediaDecoder::UpdatePlaybackPosition. r=mattwoodrow
...
The ogg reader makes two adjustments to the seek time - the first is to clamp it
between start and end time, which MDSM already does. The second is to subtract
SEEK_OPUS_PREROLL from the target. If we wanted to, we could return this as the
resolve value in the seek promise and handle the update in the MDSM. But I think
DropVideoUpToSeekTarget should actually handle this just fine.
2015-03-06 19:17:00 -08:00
Bobby Holley
bf69dac697
Bug 1135170 - Streamline seek initiation logic and abolish manual seek cancels and retries. r=mattwoodrow
...
The model we're moving towards is one where the MDSM can just disconnect all of
its promises, send a ResetDecode down the pipe, and start doing something
unrelated.
2015-03-06 19:16:59 -08:00
Carsten "Tomcat" Book
248ef21229
Backed out changeset 5d97bad42411 (bug 1128380)
2015-03-05 08:38:47 +01:00
Jean-Yves Avenard
370ed231e4
Bug 1128380: Make AmpleVideoFrames calculation dynamic. r=cpearce
2015-03-05 16:53:47 +11:00
Sotaro Ikeda
b3535ec3a6
Bug 1128357 Patch 2: Don't dispatch seeking/seeked events when coming out of dormant mode r=cpearce
2015-03-04 17:33:40 -08:00
Bobby Holley
ff83eecae4
Bug 1136399
- Add test_WaitingOnMissingData_mp4.html and disable the webm version for now. r=jya
2015-03-04 16:22:34 -08:00
Jean-Yves Avenard
eabb2adcce
Bug 1138922: Fix build bustage. r=mattwoodrow
2015-03-04 18:53:15 +11:00
Anthony Jones
69c0b09ad3
Bug 1138253 - Count dropped frames directly; r=cpearce
2015-03-03 17:46:48 +13:00
Matt Woodrow
1eb445f8ba
Bug 1138260 - Add typed Microseconds class and use it for the range removal algorithm. r=jya,kinetik
2015-03-03 17:38:45 +13:00
Karl Tomlinson
14e52f9763
bug 1123492 remove ResetDecode() call from MediaSourceReader::AttemptSeek() r=mattwoodrow
...
and this was already called before Seek().
--HG--
extra : rebase_source : 784909f9b3b4d41e688cffe8400aa94407bba4f6
2015-02-17 14:35:47 +13:00
Karl Tomlinson
966e90125f
bug 1123492 ResetDecode() on subreaders before Seek() r=mattwoodrow
...
--HG--
extra : rebase_source : 07660462a4d738a9421b4d4c1c808ab0c8fdb9f3
2015-02-28 19:46:22 +13:00
Karl Tomlinson
1e286a6386
bug 1123492 update comment to describe the thread that runs AttemptSeek() r=mattwoodrow
...
--HG--
extra : rebase_source : 8e653fb20dc53b3a99a3624dd78ba41bbfdba732
2015-02-17 13:58:55 +13:00
Jean-Yves Avenard
7a6731b6cb
Bug 1131433: Fix build on a CLOSED TREE r=me
2015-03-03 11:30:06 +11:00
Wes Kocher
6a34cef6e3
Bug 1131433 - Further fixes to SourceBufferDecoder.cpp. DONTBUILD CLOSED TREE
...
--HG--
extra : amend_source : 0799633171fbbdf88dede997194a7c4ddccc2574
2015-02-27 15:35:23 -08:00
Bobby Holley
ba77f2e511
Bug 1135785 - Return samples on state machine thread. r=cpearce
...
This is necessary because we're going to want to start disconnecting sample
and seek requests directly from the state machine thread, and the machinery
asserts that disconnection happens on the same thread as resolution.
More generally, this is the right thing to do architecturally, and will help
wean us off the monitor.
2015-03-01 19:33:49 -08:00
Jean-Yves Avenard
04ed53a51a
Bug 1128397
: Work around EOS detection in MSE. r=mattwoodrow
...
This attempts to handle video and audio sourcebuffer not having exactly the
same duration, so the ended event is properly fired.
2015-03-02 10:47:54 +11:00
Jean-Yves Avenard
454c64d2cd
Bug 1134387: Prevent crash when decoder couldn't be created. r=edwin
2015-02-27 11:31:46 +11:00
Ryan VanderMeulen
2c0b5514a5
Bug 1131433 - Re-add accidentally-removed GetMediaSourceLog() declarations.
...
CLOSED TREE
--HG--
extra : amend_source : da9073a4948e74c64bb581735af60953664afa8b
2015-02-27 17:37:52 -05:00
Matt Woodrow
9f4bcd09eb
Bug 1136984 - Followup to fix build.
2015-02-27 12:07:05 +13:00
Matt Woodrow
cad9a42886
Bug 1136984 - Use correct units for comparing timestamps in TrackBuffer::RangeRemoval. r=jya
2015-02-27 11:47:46 +13:00
Karl Tomlinson
c8b7996948
back out 6fc9b30bbdd9..232b818847e7 from bug 1123492 for crashes in DoVideoSeek()
...
--HG--
extra : rebase_source : b1441c907c6729dc49a572b9fe22dbb0744705ee
2015-02-26 19:37:48 +13:00
Karl Tomlinson
7b51f7d4f1
bug 1123492 remove ResetDecode() call from MediaSourceReader::AttemptSeek() r=mattwoodrow
...
and this was already called before Seek().
--HG--
extra : rebase_source : 4e56ad32c729c39e628b0756b9ffddb7c61951d8
extra : histedit_source : 2ef994d1336e8bdcd35144117107fd34564b135a
2015-02-17 14:35:47 +13:00
Karl Tomlinson
4a9e7e9d5f
bug 1123492 ResetDecode() on subreaders when switching to current or seeking r=mattwoodrow
...
--HG--
extra : rebase_source : 1250d41d2daa7224ef2645eb3e51af3f8f81f237
extra : histedit_source : d2f19cb88cbe6ad9ce4fb93443f03474ccfd9f0b
2015-02-18 19:23:31 +13:00
Karl Tomlinson
ac59ede2ff
bug 1123492 update comment to describe the thread that runs AttemptSeek() r=mattwoodrow
...
--HG--
extra : amend_source : ad0e5aad95d0a2bc637c059774b617abe4012804
2015-02-17 13:58:55 +13:00
Jean-Yves Avenard
51526ba4db
Bug 1096089: Make end argument an unrestricted double as per spec. r=cajbir r=bholley
...
Also, test for updating value before testing for duration and start, as per
spec: http://w3c.github.io/media-source/#widl-SourceBuffer-remove-void-double-start-unrestricted-double-end
2015-02-25 20:35:44 +11:00
Jean-Yves Avenard
991b019ff2
Bug 1136576: Properly align source buffer starts with current decoder. r=cajbir
2015-02-25 20:55:14 +11:00
Jean-Yves Avenard
a133c91e95
Bug 1135532: Allow partial truncation from ResourceQueue. r=cajbir
2015-02-25 20:35:21 +11:00
Jean-Yves Avenard
20b088062d
Bug 1096089: Part3. Add trimming support from beginning of source buffer. r=cajbir
2015-02-24 16:38:42 +11:00
Jean-Yves Avenard
ca40a6027a
Bug 1134064
: Part5. Evict from TrackBuffer's current decoder. r=cajbir
...
Also evicts all data from inactive decoders once there's nothing left to play
in them.
2015-02-24 16:38:41 +11:00
Jean-Yves Avenard
02099874d8
Bug 1134064
: Part4. Fix racing condition should data get evicted. r=mattwoodrow
...
Should required data get evicted between the time we checked for availability
and the time we started seeking, it would have caused the seek to fail. Instead
cancel current seek and go back waiting for more data.
2015-02-24 16:38:41 +11:00