Commit Graph

2260 Commits

Author SHA1 Message Date
Jean-Yves Avenard
92147becc0 Bug 1146222: use nsAutoCString to store mimetype string. r=karlt
We use a nsAutoCString as the mimetype is typically less than 64 characters
and prevent a heap allocation (and the unecessary fragmentation linked to it)
2015-03-24 14:45:17 +11:00
Bobby Holley
fcac4e1548 Bug 1145203 - Unify FlushDecoding, ResetDecode, and ResetPlayback into a single Reset() method. r=mattwoodrow 2015-03-23 17:07:10 -07:00
Bobby Holley
d31de95621 Bug 1145203 - Remove the AwaitIdle call in FlushDecoding. r=mattwoodrow
There are two callers of FlushDecoding - One is shutdown (where we already use
promises to wait for the queue to go idle via BeginShutdown), and the other is
dormant (see the comment).
2015-03-23 17:07:09 -07:00
Wes Kocher
ab0d6fbec5 Backed out changeset f3b3547c610a (bug 1144409) for eme test failures CLOSED TREE 2015-03-23 16:06:32 -07:00
Wes Kocher
8c523bfc50 Backed out changeset 6cb38e697216 (bug 1144409) 2015-03-23 16:06:31 -07:00
Wes Kocher
356400af47 Backed out changeset c58f5ffb38e0 (bug 1142379) 2015-03-23 16:06:30 -07:00
Wes Kocher
d31297ac70 Backed out changeset f5a026d98faa (bug 1138294) 2015-03-23 16:06:28 -07:00
Bobby Holley
325acf96b9 Bug 1136873 - Deliver NotifyWaitingForResourcesStatusChanged asynchronously on the state machine task queue. r=mattwoodrow
The previous setup is wacky, and can cause the notification to reach the state
machine before the promise rejection, which causes us to stall intermittently.
We also take the opportunity to be a bit less trigger happy when we fire it
in MediaSourceReader.cpp.
2015-03-23 13:17:52 -07:00
Bobby Holley
5faed6827a Bug 1136873 - Use promises for metadata decoding. r=mattwoodrow 2015-03-23 13:17:51 -07:00
Gerald Squelart
1b5ec56fb4 Bug 1138294 - EME Mochitests with MSE stream switches. r=edwin 2015-03-23 15:12:19 -04:00
Gerald Squelart
ed55cb93ff Bug 1142379 - Encrypt audio and video tracks using separate encryption settings. r=edwin 2015-03-22 12:41:00 -04:00
Gerald Squelart
4c1646cd0f Bug 1144409 - Encrypted event should be fired once per initData; part 2: future initData. r=cpearce 2015-03-22 23:27:00 -04:00
Gerald Squelart
0693105064 Bug 1144409 - Encrypted event should be fired once per initData; part 1: first initData. r=cpearce 2015-03-22 23:26:00 -04:00
Byron Campen [:bwc]
84528d3a65 Bug 1145407: Another mochitest 3 bustage fix on CLOSED TREE. r=bustage 2015-03-23 10:29:53 -07:00
Byron Campen [:bwc]
72b40d7bde Bug 1145407: Fix mochitest 3 bustage on CLOSED TREE. r=bustage 2015-03-23 10:21:23 -07:00
Byron Campen [:bwc]
97f66738e2 Bug 1145407: Add mochitests that cause multiple tracks of the same type to be placed in the same remote stream. r=mt 2015-03-19 16:18:42 -07:00
Jean-Yves Avenard
08e886c1bc Bug 1143971: Rebase bustage fix. r=bustage ON A CLOSED TREE 2015-03-23 21:26:16 +11:00
Jean-Yves Avenard
9a1807412b Bug 1145411: Reduce Apple audio decoder verbosity. r=mattwoodrow 2015-03-23 21:09:05 +11:00
Jean-Yves Avenard
bc6e9ac326 Bug 1144617: Part2. Allow seek to end of mediasource.duration. r=mattwoodrow
When seeking to the end of a mediasource media data, we will instead seek
to the last audio and video sample. The MediaDecoderStateMachine will then
request more audio or video data that will make it hit End Of Stream and
complete the seek.
2015-03-23 21:08:05 +11:00
Jean-Yves Avenard
e8044901c0 Bug 1144617: Part1. Add MediaResource::IsLiveStream() API. r=cpearce
We can't just rely on the MediaResource size to be -1 with MSE. It needs a
dedicated method.
2015-03-23 21:08:05 +11:00
Jean-Yves Avenard
c5553526a1 Bug 1143971: Part1. Come out of waiting mode when mediasource is ended. r=mattwoodrow 2015-03-23 21:08:05 +11:00
Jean-Yves Avenard
1e9b3335bb Bug 1141333: Mark reader has ended when EndOfStream explicit. r=mattwoodrow 2015-03-23 21:08:05 +11:00
Karl Tomlinson
708218f202 bug 1144189 don't dispatch runnable again after immediate dispatch in RunAfterPendingUpdates r=roc 2015-03-18 09:29:33 +13:00
Karl Tomlinson
b76acaeb32 bug 1144341 RemoveDecoder() when initialization is aborted r=jya 2015-03-23 18:13:38 +13:00
Edwin Flores
7d338b8c72 Bug 1134434 - Fix bustage on a CLOSED TREE - r=bustage 2015-03-23 16:44:20 +13:00
Stephen Pohl
5690cc9e3f Bug 1145336: Remove old GMPs during updates. r=jwwang 2015-03-22 23:12:03 -04:00
Edwin Flores
55b656bb4b Bug 1134434 - Fire loadedmetadata before encrypted event on encrypted MP4s - r=cpearce 2015-03-23 15:31:15 +13:00
Edwin Flores
6ae01b039b Bug 1134434 - Change test_eme_non_fragmented to expect a loadedmetadata' event instead of encrypted' - r=cpearce 2015-03-23 15:31:15 +13:00
Jean-Yves Avenard
6766a88711 Bug 1145101: Part6. Remove the PDM::Shutdown() method. r=cpearce
PDM::Shutdown() was documented in some implementation as running from the main
thread which wasn't the case. It served no purpose and all can be done from the
destructor instead.
The PDM being a refcounted object can be referenced by more than one object.
Shutting it down too early could cause crash. This is now avoided.
2015-03-23 11:12:59 +11:00
Jean-Yves Avenard
c4e90672b8 Bug 1145101: Part5. Re-use the same PDM when recreating a decoder. r=mattwoodrow
This ensure proper balance of PDM/Media Data Decoder Shutdown()
2015-03-22 13:13:42 +11:00
Jean-Yves Avenard
13e41fc86a Bug 1145101: Part4. Fix coding style. r=cpearce 2015-03-23 11:12:58 +11:00
Jean-Yves Avenard
cb1ad68b58 Bug 1145101: Part3. Ensure PDM is shutdown after decoder. r=cpearce
A MediaDataDecoder object can't be used once the PDM that created it is
shutdown.
We ensure that if the PDM is in use by the SharedDecoderManager we do not
shut it down.
2015-03-23 11:12:58 +11:00
Jean-Yves Avenard
89d6ca22f4 Bug 1145101: Part2. Unset VDA/VT system functions when unlinking framework. r=cpearce
Makes it much easier to debug when framework got unlinked but is incorrectly
still later used as it will crash as a null deref.
2015-03-23 11:12:58 +11:00
Jean-Yves Avenard
e8a4112459 Bug 1145101: Part1. Correct log entry. r=cpearce 2015-03-23 11:12:57 +11:00
Ehsan Akhgari
33bb32f549 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
Wes Kocher
a694cc39ce Merge m-c to inbound a=merge CLOSED TREE 2015-03-20 18:01:17 -07:00
Wes Kocher
3be7c0d138 Bug 1145816 - Disable test_mediaStreamAudioDestinationNode.html as well for frequent timeouts CLOSED TREE 2015-03-20 16:22:05 -07:00
Ryan VanderMeulen
23d09bf6cd Bug 1145816 - Disable test_mediaElementAudioSourceNodePassThrough.html on Android for being nearly perma-timeout.
CLOSED TREE
2015-03-20 17:15:43 -04:00
Byron Campen [:bwc]
84db96117c Bug 1141230: Stop using getLocalStreams() to drive checking of various things in the mochitest suite. r=jib 2015-03-12 17:30:12 -07:00
Jan-Ivar Bruaroey
aec460f948 Bug 1145403 - Don't open MediaManager on shutdown. r=jesup 2015-03-19 18:43:25 -04:00
Alexandre Lissy
944a871aef Bug 1144080 - Disable mochitests on Mulet for TaskCluster. r=ahal 2015-03-20 00:45:00 +01:00
Boris Zbarsky
54c64f20a9 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
Matt Woodrow
b8877d7455 Bug 1145029 - Disable DXVA for 4k videos on AMD hardware since it performs poorly. r=jya 2015-03-19 22:01:47 +13:00
Jan-Ivar Bruaroey
5bdee2adcc Bug 1144984 - add missing includes in MediaTimer.cpp. r=bobbyholley 2015-03-18 21:21:15 -04:00
JW Wang
e8186745ca Bug 1143562. Part2 - only init |mStorageBaseDir| in the chrome process. r=cpearce 2015-03-18 19:15:00 +01:00
JW Wang
8e48668d12 Bug 1143562 - use /data/b2g/mozilla/gmp as the gmp storage folder on B2G. r=cpearce 2015-03-16 19:51:00 +01:00
Phil Ringnalda
5045d9d2c4 Back out 59fd15407a79 (bug 1142336) for shutdown hangs
CLOSED TREE
2015-03-18 20:38:43 -07:00
Bobby Holley
ce2e01163c 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
Matt Woodrow
b7da7cb76d Bug 1138967 - Part 2: Create IMFYCbCrImage so that image data copying happens off the decoder thread. r=nical,cpearce 2015-03-19 10:16:23 +13:00
Matt Woodrow
0cf3a7cea7 Bug 1138967 - Part 1: Remove ISharedImage. r=nical 2015-03-19 10:15:38 +13:00