Commit Graph

2278 Commits

Author SHA1 Message Date
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
Bobby Holley
b5d70705f5 Bug 1144487 - Implement AbstractThread. r=mattwoodrow 2015-03-18 08:25:55 -07:00
Sylvestre Ledru
4d38d61385 Bug 1144176 - Remove a useless declaration. r=bholley 2015-03-18 14:10:08 +01:00
Benjamin Chen
0a3139a0cb Bug 1138825 - Fix the crash at mAudioPromise: call decode audio data when the audio queue is empty and check the mAudioPromise is empty or not. r=sotaro 2015-03-10 14:38:39 +08:00
Nigel Babu
9ffa767589 Backed out changeset 05850dac2882 (bug 1143562) for B2G Emulator ICS M2 bustage CLOSED TREE 2015-03-18 12:20:57 +05:30
Jean-Yves Avenard
f9983ddc18 Bug 1143987: Use SharedDecoderManager with EME PDM. r=cpearce 2015-03-18 14:10:59 +11:00
Jean-Yves Avenard
479a64c3bb Bug 1128332: Part3. Re-attempt to decode from last failed position. r=mattwoodrow 2015-03-18 14:10:58 +11:00
Jean-Yves Avenard
29327f0738 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.
2015-03-18 14:10:58 +11:00
Jean-Yves Avenard
fcde4d14ce Bug 1128332: Part1. Add useful informations to logging. r=mattwoodrow 2015-03-18 14:10:58 +11:00
Jean-Yves Avenard
370e94b5de Bug 1143586: Part1. Be more relaxed when parsing h264 codecs' levels. r=cpearce 2015-03-18 14:10:57 +11:00
Jean-Yves Avenard
54fea3f275 Bug 1143514: Update mochitest. r=cajbir
sourcebuffer is added to ms.activeSourceBuffers only once the first init
segment has been appended.
2015-03-18 14:10:57 +11:00
Jean-Yves Avenard
0aa1c25a15 Bug 1143514: Part1. Only add sourcebuffer to ActiveSourceBuffers once active. r=cajbir 2015-03-18 14:10:56 +11:00
JW Wang
69bddc962e Bug 1143562 - use /data/b2g/mozilla/gmp as the gmp storage folder on B2G. r=cpearce. 2015-03-18 10:29:31 +08:00
Daniel Holbert
2c24121797 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
Daniel Holbert
86516c1e9f Bug 1143823 part 1: Make MediaStream::RunAfterPendingUpdates() take already_AddRefed instead of a nsRefPtr. r=karlt 2015-03-17 09:29:17 -07:00
Jean-Yves Avenard
5e81c329fe Bug 1143516: Ignore SPS's aspect ratio if value is nonsensical. r=cpearce 2015-03-17 16:42:02 +11:00
Ehsan Akhgari
7ab85a504c Bug 579517 follow-up: Remove NSPR types that crept in 2015-03-16 21:15:10 -04:00
Bobby Holley
21f1825c3e Bug 1135424 - Run MDSM disposal off the MediaPromise returned by initiating shutdown on the task queue. r=mattwoodrow 2015-03-16 14:38:45 -07:00
Bobby Holley
5d75d51dac Bug 1135424 - Switch the MDSM to a task queue. r=mattwoodrow 2015-03-16 14:38:44 -07:00
Bobby Holley
b798727058 Bug 1135424 - Implement MediaTimer. r=mattwoodrow 2015-03-16 14:38:43 -07:00
Bobby Holley
2eede60044 Bug 1135424 - Allow MediaPromise dispatch to fail if the ThenValue has been disconnected. r=mattwoodrow
The original idea behind the current model was that we wanted ironclad guarantees
that consumers would always get a callback on their promise. But we now have use
cases where the consumer wants to forget about a promise (using the new
Disconnect()) feature, and in some cases wants to shut down the task queue that
the response is going to be dispatched on. In the case of this bug, we want to
avoid waiting for the longest outstanding timer promise to be resolved before
shutting down the MDSM.

So this patch fixes up the pieces needed to make this work:
* Loosening our invariants to allow dispatch targets to be released on any thread,
  since MediaTaskQueue and nsIEventTarget both have thread-safe refcounting.
* Releasing mThisVal in Disconnect, so that we no longer depend on successful
  dispatch to release it on the correct (dispatch) thread.
* Fiddling with various assertions.

We also make some assertions fatal in nightly/aurora builds while we're at it.
2015-03-16 14:38:42 -07:00
Andreas Pehrson
06875768a5 Bug 1142688 - Wait for actual audio data on remote side before checking audio sanity. r=jesup,padenot 2015-03-16 16:32:19 +08:00
Paul Adenot
d4f37ca0bf Bug 1141781 - Grip the VideoFrameContainer when queing a call to invalidate in the MediaStreamGraph. r=roc 2015-03-16 18:12:36 +01:00
JW Wang
bd501230e2 Bug 1142917 - add logs to GMPChild. r=edwin. 2015-03-16 11:27:49 +08:00
Bobby Holley
297188ca94 Bug 1141785 - Force all audio samples to be keyframes. r=k17e 2015-03-15 21:29:55 -07:00
Bobby Holley
fd17d5678b Bug 1141785 - Logging fixes. r=jya 2015-03-15 21:29:54 -07:00
Chris Peterson
df816519c2 Bug 1143336 - Fix and suppress -Wunreachable-code-return warnings in media code. r=cajbir 2015-03-14 13:47:51 -07:00
Sotaro Ikeda
26eadc39fa Bug 1142527 - Always call ReleaseMediaResources() when entering dormant r=cpearce 2015-03-15 20:51:02 -07:00
Phil Ringnalda
6799917ec4 Back out 7f1f85ee4ba6 (bug 1143278) for Win7 near-permaorange in test_eme_canvas_blocked.html 2015-03-15 18:30:53 -07:00
Jean-Yves Avenard
f638f36e68 Bug 1143339: Part3. FFmpeg decoder can play video/mp4 mimetype. r=edwin 2015-03-16 08:49:19 +11:00
Jean-Yves Avenard
c0d68c0833 Bug 1143339: Part2. Also wrap mimetype video/mp4 in avcc wrapper. r=cpearce 2015-03-16 08:48:44 +11:00
Jean-Yves Avenard
0f44a5b00e Bug 1143339: Part1. Ensure successive calls to Shutdown() won't potentially crash. r=cpearce 2015-03-16 08:48:29 +11:00
Chris Pearce
764285660f Bug 1143278 - Make gmp-clearkey not require a Win8 only DLL to decode audio on Win7. r=edwin 2015-03-15 11:30:24 +13:00
Jan-Ivar Bruaroey
6c8986ab3b Bug 1135655 - bump up tab sharing dimension defaults to match screensharing r=jesup 2015-03-13 12:21:20 -04:00
Randell Jesup
78c5f5f0a8 Bug 1141622: bustage fix for warnings-as-errors r=bustage on a CLOSED TREE 2015-03-13 10:12:59 -04:00
Jan-Ivar Bruaroey
35f8685b22 Bug 1141622 - unregress screensharing frameRate by limiting hardcoded capabilities to osx camera r=jesup 2015-03-12 12:37:25 -04:00
Phil Ringnalda
449b70840e Back out 3 changesets (bug 1135424) on suspicion of causing frequent hangs in test_playback.html on mochitest-e10s
CLOSED TREE

Backed out changeset 584d91ffdf88 (bug 1135424)
Backed out changeset d86806ea63f4 (bug 1135424)
Backed out changeset e52401d30a67 (bug 1135424)
2015-03-12 23:05:11 -07:00
Chris Double
3786384366 Bug 1127646 - Report MSE Join Latency and MTBR in telemetry - r=cpearce,bsmedberg 2015-03-13 15:02:49 +13:00
Bobby Holley
fb69461e18 Bug 1135424 - Switch the MDSM to a task queue. r=mattwoodrow 2015-03-12 17:54:35 -07:00
Bobby Holley
838ad64674 Bug 1135424 - Implement MediaTimer. r=mattwoodrow 2015-03-12 17:52:51 -07:00
Bobby Holley
643902f841 Bug 1135424 - Allow MediaPromise dispatch to fail if the ThenValue has been disconnected. r=mattwoodrow
The original idea behind the current model was that we wanted ironclad guarantees
that consumers would always get a callback on their promise. But we now have use
cases where the consumer wants to forget about a promise (using the new
Disconnect()) feature, and in some cases wants to shut down the task queue that
the response is going to be dispatched on. In the case of this bug, we want to
avoid waiting for the longest outstanding timer promise to be resolved before
shutting down the MDSM.

So this patch fixes up the pieces needed to make this work:
* Loosening our invariants to allow dispatch targets to be released on any thread,
  since MediaTaskQueue and nsIEventTarget both have thread-safe refcounting.
* Releasing mThisVal in Disconnect, so that we no longer depend on successful
  dispatch to release it on the correct (dispatch) thread.
* Fiddling with various assertions.

We also make some assertions fatal in nightly/aurora builds while we're at it.
2015-03-12 17:52:50 -07:00
Chris Double
99f7bdd3a1 Bug 1131884 - Video buffering calculation fails for some MP4 videos - r=jya
Playback position used in calculating buffering time is set
during metadata reading. This is at end of file for the
video in the bug. As a result the buffering data is always
wrong.

Changed to not setting position during metadata - it is set
during frame playback anyway.

Also changes buffering timeout to 15s from 30s.
2015-03-13 13:45:51 +13:00
Jonathan Griffin
84011a87cc Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Gerald Squelart
c9deaaa539 Bug 1121774 - Split audio and video tracks in EME MSE tests. r=edwin 2015-03-11 20:40:00 -04:00
Paul Adenot
bead2260a5 Bug 1141282 - Test the type of the attributes of the DynamicCompressoNode, and make sure it returns sane values. r=ehsan 2015-03-12 14:36:40 +01:00
Paul Adenot
3c026c91ba Bug 1141282 - DynamicCompressorNode's readonly 'reduction' should be a float. r=ehsan 2015-03-12 14:36:39 +01:00
Carsten "Tomcat" Book
54e5404eec Merge mozilla-central to mozilla-inbound 2015-03-12 12:10:54 +01:00
Carsten "Tomcat" Book
f876c2ec54 merge fx-team to mozilla-central a=merge 2015-03-12 10:17:35 +01:00
Wes Kocher
83a37cbb4c Merge m-c to fx-team a=merge CLOSED TREE 2015-03-11 19:09:10 -07:00
Wes Kocher
43233d5ebe Merge m-c to inbound a=merge 2015-03-11 19:06:00 -07:00
Ryan VanderMeulen
67d1ffef4b Merge m-c to b2g-inbound. a=merge 2015-03-11 16:03:39 -04:00
Sotaro Ikeda
4990e78217 Bug 1137515 part 2 - Change to media r=jesup 2015-03-11 12:32:38 -07:00
Jan-Ivar Bruaroey
d56642e463 Bug 1136871 - cleanup RtpSenders accounting to not rely on streams r=mt 2015-03-11 12:24:38 -04:00
Andrew Osmond
a0bbbdd643 Bug 1139027 - Permit running of camera mochitests on B2G desktop. r=mikeh 2015-03-10 19:39:49 -04:00
Chris Pearce
6adbe7ed51 Bug 1141883 - Add more logging to help debugging EME. r=edwin 2015-03-11 17:02:08 +13:00
Ryan VanderMeulen
1d88bc3c03 Merge m-c to fx-team. a=merge
CLOSED TREE
2015-03-11 16:05:05 -04:00
Mike de Boer
f7f8346239 Bug 1139907: show WebRTC screen sharing notification icon in Hello conversation window and globally when tab sharing is active. r=jesup,florian 2015-03-11 16:34:31 +01:00
Chris Pearce
df156c7a6c Bug 1141241 - Add nullcheck for mDecoder in WMFMediaDataDecoder::ProcessDrain(). r=mattwoodrow 2015-03-11 22:01:19 +13:00
Jan-Ivar Bruaroey
09943ec359 Bug 1136871 - test invalid replaceTrack arg r=standard8 2015-02-27 11:23:46 -05:00
Mark Banner
e596604059 Bug 1136871: replaceTrack testcase r=jib 2015-03-11 15:29:37 -04:00
Byron Campen [:bwc]
1fc68b315e Bug 1136871 - Part 2: Clear up some inconsistencies with ReplaceTrack r=jib,smaug 2015-03-11 12:08:21 -04:00
Matt Woodrow
bfed929c24 Bug 1131638 - Disable hardware decoding if too many frames are invalid. r=cpearce 2015-03-12 22:14:51 +13:00
Matt Woodrow
6db2c9ff04 Bug 1131638 - Record invalid frames as dropped for video playback stats. r=ajones 2015-03-12 22:14:04 +13:00
Jean-Yves Avenard
4d39518521 Bug 1140688: Only print a warning when VDA decoder couldn't be created. r=rillian 2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
b1563491d5 Bug 1141914: Always use video dimensions using extradata's SPS. r=cpearce 2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
be6ae8ed7c Bug 1128381: Part7. Streamline code across platforms. r=cpearce 2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
bf862827a7 Bug 1128381: Part6. Remove unused member functions. r=cpearce 2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
7d4ffc6f52 Bug 1128381: Part5. Make AVCC wrapper be dormant capable. r=cpearce
This makes the Apple VDA and VideoToolbox as well as EME and FFmpeg decoder
dormant capable.
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
df1eca920c Bug 1128381: Part4. Make AVCC wrapper work with SharedDecoderManager. r=cpearce 2015-03-12 11:07:19 +11:00
Jean-Yves Avenard
bf72a74ecc Bug 1128381: Part3. Handle on the fly video format change. r=cpearce
Add monitoring of the current SPS NAL and destroy/recreate H264 decoder as
required.
2015-03-12 11:07:19 +11:00
Brian Birtles
829fcc29d7 Bug 1134487 - Remove delegated constructors in GMP{Audio,Video}Decoder since they're not supported by GCC 4.6. r=cpearce 2015-02-19 10:37:29 +09:00
Ryan VanderMeulen
3b328f07d7 Backed out changesets cd5ec762afa1 and fad66e8fe874 (bug 1137515) for Nexus 5-L bustage.
CLOSED TREE
2015-03-11 12:35:08 -04:00
Alexandre Lissy
e30ef38a2d Bug 1141029 - Disabling mochitests on Mulet with parity to B2G Desktop for taskcluster. r=ahal 2015-03-11 08:15:00 -04:00
Andreas Pehrson
45fa3c5c47 Bug 1081819 - Handle InMutedCycle() in TrackUnionStream::ProcessInput. r=roc,padenot 2015-03-05 12:27:16 +08:00
Andreas Pehrson
25ce84683b Bug 1081819 - Add mochitest for piping WebAudio in and out of PeerConnection. r=jesup,padenot 2015-03-02 18:07:20 +08:00
Andreas Pehrson
499095c94e Bug 1081819 - Let the output stream itself process input data from MediaStreamAudioDestinationNode::mStream. r=roc 2015-03-02 17:08:40 +08:00
James Willcox
720f979499 Bug 1084441 - Test for ability to play MP4 on Android Jelly Bean and higher r=cpearce 2015-03-11 09:22:55 -05:00
Sotaro Ikeda
f1036a12da Bug 1137515 part 2 - Change to media r=jesup 2015-03-11 07:18:23 -07:00
Jim Porter
cb2b55eec5 Bug 1039639 - Add support for Flac on Firefox OS. r=cajbir 2014-12-02 16:37:00 -05:00
Benjamin Chen
1da43330e3 Bug 1131563 - Set the flag skipToNextKeyFrame to false if there is no keyframe behind. r=kinetik 2015-03-19 18:00:02 +08:00
JW Wang
29f4e4013e Bug 1143532 - Include pid in the log messages of GMPParent. r=edwin 2015-03-15 23:30:00 +01:00
Matthew Gregan
49d729eb7b Bug 1144523 - Convert input buffer to expected format for OpenH264 GMP plugin. r=cpearce 2015-03-20 17:52:10 +13:00
Wes Kocher
f87c38fe16 Merge m-c to inbound a=merge CLOSED TREE 2015-03-10 16:11:23 -07:00