Граф коммитов

2331 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 29c3f07735 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 eba783fa56 Bug 1145101: Part4. Fix coding style. r=cpearce 2015-03-23 11:12:58 +11:00
Jean-Yves Avenard 2a25b5ab4d 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 51d848ba61 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 5c5bf460e7 Bug 1145101: Part1. Correct log entry. r=cpearce 2015-03-23 11:12:57 +11: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
Wes Kocher 14f75f943c Merge m-c to inbound a=merge CLOSED TREE 2015-03-20 18:01:17 -07:00
Wes Kocher 5e68488fa0 Bug 1145816 - Disable test_mediaStreamAudioDestinationNode.html as well for frequent timeouts CLOSED TREE 2015-03-20 16:22:05 -07:00
Ryan VanderMeulen edd40992cc 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] 3d398312bf Bug 1141230: Stop using getLocalStreams() to drive checking of various things in the mochitest suite. r=jib
--HG--
extra : rebase_source : 27e7d4f3d86d33a1c4e046fa0e677c4d3bccc247
2015-03-12 17:30:12 -07:00
Jan-Ivar Bruaroey e9cc1b61ab Bug 1145403 - Don't open MediaManager on shutdown. r=jesup 2015-03-19 18:43:25 -04:00
Alexandre Lissy 77d1e01b3c Bug 1144080 - Disable mochitests on Mulet for TaskCluster. r=ahal 2015-03-20 00:45:00 +01: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
Matt Woodrow bfd6201948 Bug 1145029 - Disable DXVA for 4k videos on AMD hardware since it performs poorly. r=jya
--HG--
extra : rebase_source : b2b686f7b6774fb04766b47133299c78061793b5
2015-03-19 22:01:47 +13:00
Jan-Ivar Bruaroey d9836cc0ca Bug 1144984 - add missing includes in MediaTimer.cpp. r=bobbyholley 2015-03-18 21:21:15 -04:00
JW Wang 88d592058a Bug 1143562. Part2 - only init |mStorageBaseDir| in the chrome process. r=cpearce 2015-03-18 19:15:00 +01:00
JW Wang 80b1b90328 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 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
Matt Woodrow cfd81254b3 Bug 1138967 - Part 2: Create IMFYCbCrImage so that image data copying happens off the decoder thread. r=nical,cpearce
--HG--
extra : rebase_source : f42bec1f1f15eb9e825643df87f3f9285dcb7189
2015-03-19 10:16:23 +13:00
Matt Woodrow a426242c6b Bug 1138967 - Part 1: Remove ISharedImage. r=nical
--HG--
extra : rebase_source : e8ddd7c6cd6d3bb76befb65fe32210ed65d22eeb
2015-03-19 10:15:38 +13:00
Bobby Holley c64dbd1ed9 Bug 1144487 - Implement AbstractThread. r=mattwoodrow 2015-03-18 08:25:55 -07:00
Sylvestre Ledru 57e754e11c Bug 1144176 - Remove a useless declaration. r=bholley 2015-03-18 14:10:08 +01:00
Benjamin Chen 5fb5f6af9a 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 0a587c5cdd 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 09f736c2cc Bug 1143987: Use SharedDecoderManager with EME PDM. r=cpearce
--HG--
extra : rebase_source : cf3c5fff87bdca3b55d10e41d5b4f44678253c72
2015-03-18 14:10:59 +11: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 0e069551e7 Bug 1143586: Part1. Be more relaxed when parsing h264 codecs' levels. r=cpearce
--HG--
extra : rebase_source : f1dd779a298894ae81cbae62d96396a2c41dc0db
2015-03-18 14:10:57 +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
JW Wang e21abfe964 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 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
Daniel Holbert c4a0036a5d 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 ddd2384f4e Bug 1143516: Ignore SPS's aspect ratio if value is nonsensical. r=cpearce 2015-03-17 16:42:02 +11:00
Ehsan Akhgari 97b5f363cc Bug 579517 follow-up: Remove NSPR types that crept in 2015-03-16 21:15:10 -04:00
Bobby Holley f4ba405552 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 53ad5b2a9c Bug 1135424 - Switch the MDSM to a task queue. r=mattwoodrow 2015-03-16 14:38:44 -07:00
Bobby Holley 11f667af87 Bug 1135424 - Implement MediaTimer. r=mattwoodrow 2015-03-16 14:38:43 -07:00
Bobby Holley 1d46643778 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 ba688bded0 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 e95766a93b 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 05f13e6968 Bug 1142917 - add logs to GMPChild. r=edwin. 2015-03-16 11:27:49 +08:00
Bobby Holley ca9369a50d Bug 1141785 - Force all audio samples to be keyframes. r=k17e 2015-03-15 21:29:55 -07:00
Bobby Holley 9f9d0175f0 Bug 1141785 - Logging fixes. r=jya 2015-03-15 21:29:54 -07:00
Chris Peterson df594b2b0d Bug 1143336 - Fix and suppress -Wunreachable-code-return warnings in media code. r=cajbir 2015-03-14 13:47:51 -07:00
Sotaro Ikeda 5bcb8e7249 Bug 1142527 - Always call ReleaseMediaResources() when entering dormant r=cpearce 2015-03-15 20:51:02 -07:00
Phil Ringnalda 571ce099b4 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 2572f7570a Bug 1143339: Part3. FFmpeg decoder can play video/mp4 mimetype. r=edwin 2015-03-16 08:49:19 +11:00
Jean-Yves Avenard a2d00dfc0a Bug 1143339: Part2. Also wrap mimetype video/mp4 in avcc wrapper. r=cpearce 2015-03-16 08:48:44 +11:00
Jean-Yves Avenard 68dde32c37 Bug 1143339: Part1. Ensure successive calls to Shutdown() won't potentially crash. r=cpearce 2015-03-16 08:48:29 +11:00
Chris Pearce 151f899496 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 c27c8bdddb Bug 1135655 - bump up tab sharing dimension defaults to match screensharing r=jesup 2015-03-13 12:21:20 -04:00
Randell Jesup d2e1438a01 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 293c4b5fad Bug 1141622 - unregress screensharing frameRate by limiting hardcoded capabilities to osx camera r=jesup 2015-03-12 12:37:25 -04:00
Phil Ringnalda 345a4eca93 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 1ef0fc9d78 Bug 1127646 - Report MSE Join Latency and MTBR in telemetry - r=cpearce,bsmedberg 2015-03-13 15:02:49 +13:00
Bobby Holley 0563f41ef7 Bug 1135424 - Switch the MDSM to a task queue. r=mattwoodrow 2015-03-12 17:54:35 -07:00
Bobby Holley de5342cf9d Bug 1135424 - Implement MediaTimer. r=mattwoodrow 2015-03-12 17:52:51 -07:00
Bobby Holley ab44849fc5 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 17b0191dec 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 d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Gerald Squelart 71b9547ba6 Bug 1121774 - Split audio and video tracks in EME MSE tests. r=edwin
--HG--
rename : dom/media/test/gizmo-frag-cenc.xml => dom/media/test/bipbop-frag-cenc.xml
rename : dom/media/test/test_eme_non_fragmented.html => dom/media/test/test_eme_non_mse_fails.html
2015-03-11 20:40:00 -04:00
Paul Adenot 1a25b47c65 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 ada66aa858 Bug 1141282 - DynamicCompressorNode's readonly 'reduction' should be a float. r=ehsan 2015-03-12 14:36:39 +01:00
Carsten "Tomcat" Book f11551a724 Merge mozilla-central to mozilla-inbound 2015-03-12 12:10:54 +01:00
Carsten "Tomcat" Book fb7ccb2edc merge fx-team to mozilla-central a=merge 2015-03-12 10:17:35 +01:00
Wes Kocher 42e0c8a496 Merge m-c to fx-team a=merge CLOSED TREE 2015-03-11 19:09:10 -07:00
Wes Kocher b7ae2e9516 Merge m-c to inbound a=merge
--HG--
extra : rebase_source : 243776ce01fcd38161dd94411e0bc1cbfb2f7cb2
2015-03-11 19:06:00 -07:00
Ryan VanderMeulen 97acbd9776 Merge m-c to b2g-inbound. a=merge 2015-03-11 16:03:39 -04:00
Sotaro Ikeda ccf07f5419 Bug 1137515 part 2 - Change to media r=jesup 2015-03-11 12:32:38 -07:00
Jan-Ivar Bruaroey d132e36539 Bug 1136871 - cleanup RtpSenders accounting to not rely on streams r=mt 2015-03-11 12:24:38 -04:00
Andrew Osmond ce39ae083d Bug 1139027 - Permit running of camera mochitests on B2G desktop. r=mikeh 2015-03-10 19:39:49 -04:00
Chris Pearce de13adbecb Bug 1141883 - Add more logging to help debugging EME. r=edwin 2015-03-11 17:02:08 +13:00
Ryan VanderMeulen e2754f772f Merge m-c to fx-team. a=merge
CLOSED TREE
2015-03-11 16:05:05 -04:00
Mike de Boer 04f3c42e8e 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 46dba701ac Bug 1141241 - Add nullcheck for mDecoder in WMFMediaDataDecoder::ProcessDrain(). r=mattwoodrow 2015-03-11 22:01:19 +13:00
Jan-Ivar Bruaroey 1a0a70d9a2 Bug 1136871 - test invalid replaceTrack arg r=standard8 2015-02-27 11:23:46 -05:00
Mark Banner de623dc60c Bug 1136871: replaceTrack testcase r=jib 2015-03-11 15:29:37 -04:00
Byron Campen [:bwc] 6fb59a4364 Bug 1136871 - Part 2: Clear up some inconsistencies with ReplaceTrack r=jib,smaug 2015-03-11 12:08:21 -04: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
Matt Woodrow c2badcb2ef Bug 1131638 - Record invalid frames as dropped for video playback stats. r=ajones 2015-03-12 22:14:04 +13:00
Jean-Yves Avenard 587ac422b8 Bug 1140688: Only print a warning when VDA decoder couldn't be created. r=rillian
--HG--
extra : rebase_source : 3292410fbd8a8b03469ece9a257d6cd744ce5fef
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard 4c60d0f785 Bug 1141914: Always use video dimensions using extradata's SPS. r=cpearce
--HG--
extra : rebase_source : f8d97ec431cc5147edc9013029e2053d3f2e4a40
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard 100d451a99 Bug 1128381: Part7. Streamline code across platforms. r=cpearce
--HG--
extra : rebase_source : bd3fa9d07c8e37711f2409ef731f60ff882f8dbb
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard 7434c7c6ac Bug 1128381: Part6. Remove unused member functions. r=cpearce
--HG--
extra : rebase_source : f310f0f143662154332963e6f7678a4f87057ad8
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard 51d8526603 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.

--HG--
extra : rebase_source : f350d83ea8bb3a2a7d80c51c4861272f1093eee3
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard 83de7dcb78 Bug 1128381: Part4. Make AVCC wrapper work with SharedDecoderManager. r=cpearce
--HG--
extra : rebase_source : 957ef4b523f795804fec06c295c80c5de0da7bde
2015-03-12 11:07:19 +11:00
Jean-Yves Avenard adf3e336a3 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.

--HG--
extra : rebase_source : fbab04b0ae3b4be42eea34a1c6f1b19bf39ad2f0
2015-03-12 11:07:19 +11:00
Brian Birtles 78cbd39cef 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 d4a838cbc3 Backed out changesets cd5ec762afa1 and fad66e8fe874 (bug 1137515) for Nexus 5-L bustage.
CLOSED TREE

--HG--
extra : rebase_source : 59680d649177809d0a31d87091ab9d18070f7a0f
2015-03-11 12:35:08 -04:00
Alexandre Lissy 1e7c8bf446 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 2050f9e190 Bug 1081819 - Handle InMutedCycle() in TrackUnionStream::ProcessInput. r=roc,padenot 2015-03-05 12:27:16 +08:00
Andreas Pehrson 7f6daeea34 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 35fb84dfd4 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 99105b89d6 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 80cec56356 Bug 1137515 part 2 - Change to media r=jesup 2015-03-11 07:18:23 -07:00
Jim Porter d0a2187ca7 Bug 1039639 - Add support for Flac on Firefox OS. r=cajbir 2014-12-02 16:37:00 -05:00
Benjamin Chen 6649eea3cd Bug 1131563 - Set the flag skipToNextKeyFrame to false if there is no keyframe behind. r=kinetik
--HG--
extra : rebase_source : e561bdfe1bddfc5073587056925248a4ba905977
2015-03-19 18:00:02 +08:00
JW Wang 2689394ff9 Bug 1143532 - Include pid in the log messages of GMPParent. r=edwin
--HG--
extra : rebase_source : 704c153d9227781f9cc443315603204efc7e2b0a
2015-03-15 23:30:00 +01:00
Matthew Gregan a5dd52d5ad Bug 1144523 - Convert input buffer to expected format for OpenH264 GMP plugin. r=cpearce 2015-03-20 17:52:10 +13:00
Wes Kocher 014849cca6 Merge m-c to inbound a=merge CLOSED TREE 2015-03-10 16:11:23 -07:00
Wes Kocher d8ac0068e5 Merge b2g-inbound to m-c a=merge CLOSED TREE 2015-03-10 15:44:53 -07:00
Carsten "Tomcat" Book cc4d1b9af9 Merge mozilla-central to b2g-inbound 2015-03-10 14:07:36 +01:00
Thomas Zimmermann 1ddf770fc6 Bug 1137151: Marked destructor of |MuxerOperation| as protected, r=sotaro 2015-03-10 13:44:01 +01:00
Thomas Zimmermann 9823b29ee9 Bug 1137151: Remove ref-counting from |OMXVideoEncoder| r=sotaro
Reference counting in |OMXVideoEncoder| is used inconsistently any actually
not necessary. This patch removed the code. Users are converted to auto
pointers.
2015-03-10 13:44:01 +01:00
Thomas Zimmermann e90fcbf7f7 Bug 1137151: Marked destructor of |android::MediaCodecReader| as protected, r=sotaro 2015-03-10 13:44:01 +01:00
Randell Jesup 0994edf17b Bug 1130150: mSources update r=roc 2015-03-10 01:08:03 -04:00
Karl Tomlinson 96611b45a9 bug 1139874 check for shutdown before asking the reader for buffered r=bholley
--HG--
extra : rebase_source : cbc7f06a89dfbaf22eb590c51ba709a4757296d0
2015-03-10 09:53:31 +13:00
Wes Kocher 8e389f1730 Merge inbound to m-c a=merge CLOSED TREE 2015-03-09 18:27:28 -07:00
Mike Taylor 6cd22be51a Bug 1136877 - Collect telemetry on SPS.max_num_ref_frames. r=jya 2015-03-06 08:18:00 -05:00
Mike Taylor df74a152aa Bug 1136877 - Collect telemetry on constraint_set flags from decoded SPS. r=jya 2015-03-06 08:17:00 -05:00
Ethan Tseng 5bc6a1cede Bug 1133461 - [RTSP] Remove the extra PLAY request for seek operation. r=bechen 2015-03-04 17:34:35 +08:00
Mike Taylor 8efae6d25f Bug 1136877 - Collect telemetry on constraint_set flags from canPlayType. r=jya 2015-03-03 08:54:00 -05: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
Chris Pearce 44bf110503 Bug 1140778 - Disable test_eme_obs_notification since it's testing functionality we're going to remove. r=test-only. 2015-03-09 16:24:18 +13:00
Jean-Yves Avenard 3a14d38778 Bug 1128380: Make AmpleVideoFrames calculation dynamic. r=cpearce 2015-03-09 14:17:30 +11:00
Jean-Yves Avenard 24c09255ca Bug 1128380: Add IsHardwareAccelerated implementation for AVCC and mac decoder. r=cpearce 2015-03-09 14:17:27 +11:00
Matt Woodrow 3154f0f851 Back out bug 1131638 (changesets 78b34d0e414a and 1b55b99dc432) for causing various video regressions 2015-03-09 16:18:32 +13:00
Jean-Yves Avenard 52763888a3 Bug 1139779: Part5. Move picture/display size calculations in AVCC wrapper. r=rillian 2015-03-10 21:19:42 +11:00
Jean-Yves Avenard 313c854fd3 Bug 1139779: Part4. Make FFmpeg video decoder use AVCC. r=edwin
FFmpeg h264 decoder doesn't handle change of SPS in-band and only use the first
found.
2015-03-10 21:19:42 +11:00
Jean-Yves Avenard b849b45758 Bug 1139779: Part3. Use dispay size extracted from SPS NAL. r=edwin
This also adds proper aspect ratio support.
2015-03-10 21:19:41 +11:00
Jean-Yves Avenard 85f78b847d Bug 1139779: Part2. Use display dimension from SPS NAL. r=rillian 2015-03-10 21:19:41 +11:00
Nils Ohlmeier [:drno] 7bfa9a84ae Bug 1139094 - Fix multiple steeplechase test execution problems. r=bwc, r=mt 2015-03-03 21:33:00 -05: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
Ehsan Akhgari 0f8abb1d44 Bug 1140763 - Build dom/media/gtest in unified mode; r=cpearce 2015-03-08 15:46:07 -04:00
Phil Ringnalda df31a989de Backed out 3 changesets (bug 1081819) for frequent mochitest-e10s failures
Backed out changeset b78fd38002f5 (bug 1081819)
Backed out changeset ff063b9a1ea2 (bug 1081819)
Backed out changeset 322d60fc413e (bug 1081819)
2015-03-07 18:14:05 -08:00
Andreas Pehrson a58f208924 Bug 1081819 - Handle InMutedCycle() in TrackUnionStream::ProcessInput. r=roc,padenot 2015-03-05 12:27:16 +08:00
Andreas Pehrson dfcdf561b0 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 307e15ba05 Bug 1081819 - Let the output stream itself process input data from MediaStreamAudioDestinationNode::mStream. r=roc 2015-03-02 17:08:40 +08:00
L. David Baron 97b31730a2 Bug 1135170 bustage fix: add #include to fix bustage with EME disabled.
This led to build errors on some periodic B2G device image builds for Nexus 5-L.
2015-03-06 21:33:25 -08: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 91d1025f91 Bug 1135170 - Remove garbage test_bug493187.html. rpending=mattwoodrow
This test is fundamentally racey - it loads very short video files (some less
than 1s), plays them, waits for timeupdate events to try to find just the right
moment to seek, performs a seek, and then checks various pieces of
playback-dependent state (while playing).

The specific issue I ran into was that the video would sometimes finish playing
before the 'seeked' event handler fired, which means that readyState is
HAVE_CURRENT_DATA (per spec). I could fiddle with the test a bit to handle this
case, but I think we're doing a disservice to ourselves by having it in the tree.
2015-03-06 19:17:24 -08:00
Bobby Holley 7d849fa87c Bug 1135170 - Fix up racey test_seek-1.html. rpending=mattwoodrow
The use of play() and pause() in the test is hugely problematic for short video
files and slow/laggy platforms. In particular, if playback has ended by
the time that we fire the 'seeked' event listener, then the ensuing play() will
put us back into seeking mode (seeking to 0), making the test fail.
2015-03-06 19:17:10 -08:00
Bobby Holley 4406d389a4 Bug 1135170 - Remove now-unused state machine scheduler freezing/thawing. r=mattwoodrow 2015-03-06 19:17:09 -08:00
Bobby Holley 578cad549e Bug 1135170 - Rewrite the MediaDecoder-to-MediaDecoderStateMachine interface to be Promise-based. r=mattwoodrow 2015-03-06 19:17:07 -08:00
Bobby Holley 1dd7c91f68 Bug 1135170 - Move the RenderVideoFrame call to the end of SeekCompleted. r=mattwoodrow
This means that we can get rid of the code to recheck state after dropping the
monitor. We'll remove the other monitor drop from this method in a subsequent
patch.
2015-03-06 19:17:06 -08:00
Bobby Holley e02c011cd4 Bug 1135170 - Move some work from MDSM::Seek to MDSM::InitiateSeek. r=mattwoodrow
This has two implications:
* We no longer need to pipe mQueuedSeekTarget through MDSM::Seek to get the
  appropriate clamping.
* MDSM::Seek doesn't _need_ to be called on the main thread anymore.
2015-03-06 19:17:04 -08:00
Bobby Holley d846586729 Bug 1135170 - Reap some cleanup and assertions that were waiting on this bug. r=mattwoodrow 2015-03-06 19:17:01 -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
Bobby Holley 243db68fec Bug 1135170 - Stop doing sync dispatch for SeekingStarted. r=mattwoodrow
I can't see any reason why this should be necessary, and cursory archaeology
suggests that this too is a hand-me-down from previous threading models.
2015-03-06 19:16:57 -08:00
Bobby Holley df32aaa30e Bug 1135170 - Remove silly special case for seeking to exactly the current time. r=mattwoodrow
I traced this back to something 2011 or earlier and then gave up. Given that we're
doing an exact microsecond comparison here this is almost certainly dead code in
every case except for the one where the media is paused and JS does
|el.currentTime = el.currentTime|. And in that case, I think running through the
regular seek machinery is probably fine.
2015-03-06 19:16:56 -08:00
Bobby Holley 3b78e1ecfd Bug 1135170 - Route queued seeks back through MDSM::Seek and eliminate MDSM::StartSeek. r=mattwoodrow 2015-03-06 19:16:54 -08:00
Bobby Holley 82e85c92e2 Bug 1135170 - Pin MediaResource in OggReader::GetSeekRanges. r=mattwoodrow
All consumers of MediaCacheStream::GetCachedRanges do this except this one.
2015-03-06 19:16:53 -08:00
Bobby Holley e0fd85f315 Bug 1140675 - Disable failing tests on windows opt. r=me 2015-03-06 19:11:51 -08:00
Jan-Ivar Bruaroey 005954fb76 Bug 1140363 - fire recording-window-ended on gUM failures, like we do on deny r=jesup 2015-03-06 13:23:33 -05:00