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

12591 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 978711ce7c Merge autoland to mozilla-central r=merge a=merge 2017-11-06 12:44:18 +02:00
Csoregi Natalia 6bf19d4921 Backed out 6 changesets (bug 1395922) for failing Media tests test_eme_sample_groups_playback.html and test_eme_sample_groups_playback.html r=backout a=backout
Backed out changeset f856af63682e (bug 1395922)
Backed out changeset f59a7e727f39 (bug 1395922)
Backed out changeset 9cd31c6a8e2c (bug 1395922)
Backed out changeset d46f952f94f8 (bug 1395922)
Backed out changeset f786d928b1e0 (bug 1395922)
Backed out changeset bacda0f99f71 (bug 1395922)
2017-11-06 12:34:02 +02:00
James Cheng 895569636e Bug 1414760 - Fix calling a function without resolving its declaration. r=jolin
MozReview-Commit-ID: 38lJgykKMT5

--HG--
extra : rebase_source : ca8eb0e013255e4259b246c35c262464711df8dd
2017-11-06 17:13:06 +08:00
JerryShih bc746b55a9 Bug 1409176 - handle decoder error in WMFMediaDataDecoder::ProcessDecode(). r=jya,mattwoodrow
The DXVA decoder might hit some error because of the hardware device status.
This patch try to pass the error code to the decoder promise object to
deal with the error.

MozReview-Commit-ID: IAj8gzKGF3j
2017-11-06 16:07:22 +08:00
Sebastian Hengst d61954557d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Ai6Y5GGfkfT
2017-11-04 10:58:24 +01:00
Bob Clary 1d8ba0f540 Bug 1365451 - disable Cdm1 dom/media/test/crashtests/691096-1.html, r=jmaher. 2017-11-05 16:59:19 -08:00
Bob Clary dcd73319bd Bug 1408241 - disable Mdm1 dom/media/test/test_mediarecorder_record_addtracked_stream, r=jmaher. 2017-11-05 16:58:48 -08:00
JW Wang 605a0bdc18 Bug 1414709 - use Span<> to replace low level pointer arithmetic in MediaCacheStream::NotifyDataReceived(). r=bechen,gerald
MozReview-Commit-ID: KIwws0qiCVK

--HG--
extra : rebase_source : 3e50c2047703b01f006cfec65c4b0667b47906af
extra : intermediate-source : fbb2cf22b5028b57762ce7e7e9f56526ad5e9727
extra : source : 4bfb8f2ed2afb6f74cae0caf34dd34b0a818a45a
2017-11-01 23:20:11 +08:00
Jon Coppeard fd86611724 Bug 1413993 - Remove unused USEC_PER_SEC constant r=jya
This constant is #defined in some MacOS system headers which causes compile errors.
2017-11-03 10:25:26 +00:00
JW Wang e7d1c35d12 Bug 1413858 - Resume() needs to reset mPendingSeekOffset before calling Seek(). r=gerald
MozReview-Commit-ID: GbZ3SvSTMvR

--HG--
extra : rebase_source : 4579ffa96a7d8117827b71e2f0fcb73e3bfc996a
2017-11-02 20:25:57 +08:00
Michael Froman 7eb5cd2f86 Bug 1413709 - add tests to detect improper ice restart by answer. r=bwc
Adding tests that would have shown the issue fixed in Bug 1405940.
If the answer during a renegotiation has modified ICE credentials,
it should cause an error.  These tests check for that error.

MozReview-Commit-ID: 9u8GGpslDdK

--HG--
extra : rebase_source : 6b204cefa96e95abd61d9a57ddd643dd81a41254
2017-11-01 11:56:35 -05:00
JW Wang 4e6da8890c Bug 1414706 - dump debug info immediately when a test times out. r=jya
For now we dump debug info when the whole test case finishes. However, it
would be harder to relate the debug info to the timed out test when there
are multiple test timeouts.

Note we don't call |this.finished(token)| until v.mozDumpDebugInfo() is done
because |this.finished(token)| might finish the whole test case and clean up
the page which might change the output of v.mozDumpDebugInfo().

MozReview-Commit-ID: BrdZ0EVpaBQ

--HG--
extra : rebase_source : ee5d20c3ab605568e7fe895f14b8e9468fffd5ab
extra : source : 1288e105a94ac05fc3a978b7287dd45ecdfb6e8d
2017-11-03 11:16:30 +08:00
Andreas Pehrson 368e21e1b1 Bug 1407542 - Remove back reference to consumer in MediaStreamTrack. r=jib,smaug
It doesn't matter that this is traversed by the cycle collector when the track is live and playing.
It prevents cycle collection of any number of MediaStreams that contain (thus consume) this track.

MozReview-Commit-ID: GvdLfWDTVQQ

--HG--
extra : rebase_source : 29e65d25bd7cdf03e32ff4aa736b0ff762ebf1c1
2017-10-10 20:48:58 +02:00
Andreas Pehrson a0b90be9da Bug 1407542 - Add mochitest checking that MediaStreams can be GCed. r=jib
MozReview-Commit-ID: Aypf1QAG7o8

--HG--
extra : rebase_source : bb0965bf510a429dfa38f4ced1dfb198d3bae016
2017-10-24 10:35:02 +02:00
Andreas Pehrson 83671598ea Bug 1407542 - Implement static chrome-only MediaStream method to get number of MSG-MediaStreams. r=jib,smaug
MozReview-Commit-ID: B0nDXzMBGlJ

--HG--
extra : rebase_source : 920fe77580a82f305e2604b89816b0bb3846c0e4
2017-10-23 19:09:47 +02:00
Andreas Pehrson e22e9cf471 Bug 1407542 - Implement MediaStreamGraph::GetInstanceIfExists. r=padenot
MozReview-Commit-ID: EAd0rIrZg43

--HG--
extra : rebase_source : 2fdfc1ce361b9f9d6c43ffa887c54c88e6157f11
2017-10-23 19:08:40 +02:00
Andreas Pehrson 7238d9d97f Bug 1410829 - Clear out mImage on media shutdown. r=jib
MozReview-Commit-ID: 468prmnuwrk

--HG--
extra : rebase_source : 0dff3e15492dbfa846cdd6fea92d16e24573d0b2
2017-10-26 14:32:02 +02:00
Andreas Pehrson c8ea57f25d Bug 1410829 - Clean up streams and listeners before unblocking shutdown. r=padenot
MozReview-Commit-ID: CcGaAJAUahm

--HG--
extra : rebase_source : 70133a11af466484bd7bbf6ef8793fbdff4312ab
2017-10-27 10:12:59 +02:00
Andreas Pehrson 71cacec3d5 Bug 1410829 - Signal listeners removed on shutdown so they can clean up. r=padenot
When shutting down we shut modules down in the order of
[media, gfx, cycleCollector].

At the same time we rely on destructors to clean up resources for MediaStreams
and MediaStreamTracks, but these objects may be held until cycleCollector
shutdown. Gfx resources are not allowed to be released after gfx shutdown, which
is where we this approach hits a wall.

This patch will signal them through the three available listener types to clean
up during media shutdown.

MozReview-Commit-ID: FwsG3ukV29P

--HG--
extra : rebase_source : 554ec29a43b7551b3b5570577b0559285e36d4fd
2017-10-26 16:13:38 +02:00
Andreas Pehrson 46edadb25e Bug 1409727 - Add a mode and pref to disallow frame drops in MediaRecorder. r=SingingTree
MozReview-Commit-ID: CJBJURDn7gB

--HG--
extra : rebase_source : 248e904879dc68fcce7f041b9ebaed82e7aba9ed
2017-10-19 14:38:07 +02:00
Chris Pearce ed7f41cdf7 Bug 1414680 - Make MediaDecoderOwner::DispatchAsyncEvent() return void. r=jwwang
The return value is unchecked in MediaDecoder, and we only ever returned
NS_OK anyway. And we if the dispatch fails, we can't really do anything;
dispatching an "error" event probably won't work.

MozReview-Commit-ID: 67K6Mjft6tY

--HG--
extra : rebase_source : ad644e8b97fc11488983bc05e18c9941b3c5b062
2017-11-05 09:12:44 +01:00
Chris Pearce d716365ee0 Bug 1414680 - Remove IsActive() and IsHidden() from MediaDecoderOwner as they're unused by MediaDecoder. r=jwwang
MozReview-Commit-ID: 7NaPBmQJVQC

--HG--
extra : rebase_source : 0cfe05a1aefb23a4070b2855569110e7a4ab6b2c
2017-11-05 09:11:09 +01:00
JW Wang 8adc7a5bd8 Bug 1375772 - don't evict the block which is in the current cached range. r=cpearce
Evicting the block will result in a gap in the current cached range starting
from mStreamOffset to mChannelOffset. Then we have
|GetCachedDataEndInternal(mStreamOffset) < mChannelOffset| and MediaCache
will open a new channel to fill the gap which is bad.

This is exactly the issue described in bug 1347174 where we limit the readahead
size to prevent the problem above from happening.

However bug 1347174 is indeed a workaround instead of a fix. It works around
the issue by suspending the download before the cache is full and has to evict
some blocks to allow new data to come in.

We should let MediaCache suspend the channel if it is full or evict played
blocks if possible.

MozReview-Commit-ID: HuUsZLdHGuh

--HG--
extra : rebase_source : cdd9bdb5bc63589550bafd49f6e313244037d8dd
extra : intermediate-source : 90aaf942dfbfdff98ef3df412ed49141f3f50e55
extra : source : fc8bc1c456677b92884c80ecfe4d5074a610f81a
2017-11-02 18:12:20 +08:00
JW Wang 3fc794b919 Bug 1414121. P2 - let MediaDecoder::DumpDebugInfo() return a MozPromise. r=jya
MozReview-Commit-ID: Fau4ysdlwwa

--HG--
extra : rebase_source : cdf67d359301eed57935c761cad5c74e2ffdabb7
extra : source : f0e2e3449a80e507c3cc041f6ba87fce6455ffc5
2017-11-03 10:46:02 +08:00
Sebastian Hengst e06b6c7e17 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-11-07 13:05:55 +02:00
Andreas Pehrson 79107aea64 Bug 1405599 - GetUserMedia should reject when document not fully active. r=jib, r=bz
MozReview-Commit-ID: DLIuFMZLGFc

--HG--
extra : rebase_source : 6043b392bd659deb4c1c7ec012014cb264c38417
2017-10-04 11:24:35 +02:00
Nico Grunbaum b8910f7f50 Bug 1377420 - add RID check in RTP in simulcast mochitests r=drno
* Added RTP parser

MozReview-Commit-ID: B31iK4cDpOQ

--HG--
extra : rebase_source : 5789ea2a751c67d310db2f6c74d4e7af700c12d6
2017-06-30 01:02:55 -07:00
Ralph Giles 92f3d837b2 Bug 1413734 - av1: Update decoder library. r=kinetik
Update to upstream commit id e87fb2378f01103d5d6e477a4ef6892dc714e614
from a couple of weeks ago to pick up changes.

MozReview-Commit-ID: H7H69A7qFXD

--HG--
extra : rebase_source : dee676da15b65e4eea612d20529c4fb312bbddfb
2017-11-01 15:36:09 -07:00
Kilik Kuo 70bf2e8e88 Bug 1395922 - [P6][Test] Playback should resume after reattaching same MediaKeys with valid sessions. r=cpearce
MozReview-Commit-ID: CASXy2SN4fh

--HG--
extra : rebase_source : 6718c77d944fa2597c8aa3c3eefa139f8363d44b
2017-11-03 20:15:48 +08:00
Kilik Kuo 5fb141a715 Bug 1395922 - [P5][Test] Capture clear content with canvas 2d after remove MediaKeys from the same HTMLMediaElement. r=cpearce
MozReview-Commit-ID: CUnblsNOmcm

--HG--
extra : rebase_source : 228490859bb0d82bf7535bccb01e7281c5dc65b8
2017-11-03 20:15:19 +08:00
Kilik Kuo 4c6e8a291c Bug 1395922 - [P4] Make MDSM enter buffering state when MediaKeys is removed and resume the playback if setting same MediaKeys back. r=cpearce,jya
MozReview-Commit-ID: KdmeGqoVgak

--HG--
extra : rebase_source : b65cfc8e0e47c08e6b64b50e992bdf84da852bbd
2017-11-03 20:14:49 +08:00
Kilik Kuo 55be93073e Bug 1395922 - [P3] Make HTMLMediaElement::SetMediaKeys asynchronously. r=cpearce
MozReview-Commit-ID: 5M8CTHMsmIh

--HG--
extra : rebase_source : c1b186f6da354b79036dea7175960e1e33a2eaae
2017-11-03 20:14:17 +08:00
Kilik Kuo 23f6932509 Bug 1395922 - [P2] Make MediaFormatReader::SetCDMProxy asynchronously with a promise. r=cpearce,jya
MozReview-Commit-ID: 7RarmmlA0lo

--HG--
extra : rebase_source : 195f64f405aa19920ccf09ffeddb087877d653a4
2017-11-03 20:12:39 +08:00
Jean-Yves Avenard acabf2903c Bug 1295886 - P15. Enable FLAC mochitest on Android. r=gerald
MozReview-Commit-ID: 83mJleAMVro

--HG--
extra : rebase_source : ba445777b70a1b700eb21eb9809fecea76609598
2017-11-02 02:56:04 +01:00
Jean-Yves Avenard ddd448a846 Bug 1295886 - P9. Fix linkage of libmozav* libs on Android. r=snorp
Using flag PR_LD_LOCAL causes PR_LoadLibraryWithFlags to fail, and there should be no difference with PR_LD_GLOBAL anyway on Android.

MozReview-Commit-ID: DAduV8yg8Sx

--HG--
extra : rebase_source : 83f28e6b74dcc7d58bf780ad1451153c4c447a0a
2017-11-01 11:41:22 +01:00
Jean-Yves Avenard 032cb23c68 Bug 1295886 - P8. Never use AndroidDecoderModule to decode FLAC. r=gerald
The behaviour of the system decoder is unpredictable.

MozReview-Commit-ID: FubvCm0xyiL

--HG--
extra : rebase_source : 4ac49f1c6fc575e361520598de413f7439a05d0e
2017-11-01 11:37:09 +01:00
Jean-Yves Avenard af8b24d7c1 Bug 1295886 - P7. Add support for S16 decoded output. r=gerald
Android audio backend only supports S16 audio sample, so configure ffmpeg audio decoder to output 16 bits audio by default. Adding format conversions as necessary.

MozReview-Commit-ID: J6N4rbMZ3Ug

--HG--
extra : rebase_source : 7a8a72a7e9cd3dde2c8659d363875c6d5072b6b2
2017-11-01 11:33:06 +01:00
James Cheng 6404d15bca Bug 1396698 - Part2 - Dispatch to mainthread by ourself and do the synchronization to avoid race. r=kikuo
MozReview-Commit-ID: 6rA2TvESyEz

--HG--
extra : rebase_source : 109ac7ba28df498f20dcd5af4a98e7fe7ad2a516
2017-11-03 14:22:41 +08:00
JW Wang 0dc60230e2 Bug 1411808. P3 - InitAsClone() shouldn't call |mMediaCache->OpenStream(this)| until initialization is done. r=gerald
We don't want MediaCache to use a half-initialized stream.

MozReview-Commit-ID: LjPLOYwy0Wd

--HG--
extra : rebase_source : a52a23fc6dce2a87ef2829254dcabe8176b2c28c
extra : intermediate-source : eb9c3d068ff4c3496831d80398012daebe8a5d52
extra : source : d980eb79f7a5219651ef710630cdf6dc3bd96195
2017-10-26 11:13:38 +08:00
JW Wang 68005e8e16 Bug 1411808. P2 - don't call mClient->IsSuspended() off the main thread in Update(). r=gerald
By mirroring the suspend status of the client, Update() is able to make
decisions on reading streams without calling mClient->IsSuspended().

MozReview-Commit-ID: G4gS2VGiMjj

--HG--
extra : rebase_source : bcdc1010fce47965c999df61666983c87e189670
extra : intermediate-source : 9dd8cfb80e29677e8cae866b2326dfb0aec5b6ae
extra : source : d20f640bf99478c9ba581e4979ec8091ef94e0f3
2017-10-24 11:25:41 +08:00
JW Wang 8b79428eb0 Bug 1411808. P1 - run Update() loops off the main thread. r=gerald
Note we will fix bugs required to run Update() off the main thread
in the following patches.

MozReview-Commit-ID: CYwT5kDjD9R

--HG--
extra : rebase_source : edef59353b5f56d5aecb6d58f5cc2a8dfb09c317
extra : intermediate-source : 995a34fb6af54d3f4ad2de479d7777860a957f98
extra : source : 8d86a14f877cf83584cf1e57020568037a35154a
2017-10-23 17:12:07 +08:00
JW Wang bba58a54de Bug 1413484 - tighten some assertions. r=gerald
mCallback->GetMediaOwner() now is always called before Close() and won't
return null. So is owner->GetMediaElement().

MozReview-Commit-ID: HbxbyuogYAB

--HG--
extra : rebase_source : 28e6ccf104fea9dba9885974f77e19535de84f54
extra : intermediate-source : 15cfa511119ce07e3ede692dc8b14ae177dd388a
extra : source : 9ce161facd920a0efeaf8260ea75f13f1679b24e
2017-10-27 22:17:41 +08:00
Bob Clary c55f566e31 Bug 1393866 - disable dom/media/test/test_resolution_change.html on Android 4.4 due to time outs, r=gbrown. 2017-11-09 09:06:23 -08:00
Bob Clary 66cd66a8d9 Bug 1415061 - disable dom/media/test/test_play_promise* on Android 6.0 due to time outs, r=gbrown. 2017-11-09 09:06:23 -08:00
Nika Layzell 2cb3ebf10d Bug 1414974 - Part 4: Split WindowByIdTable into two separate tables for inner and outer windows, r=bz
MozReview-Commit-ID: LH3lKkFqTgG
2017-11-09 10:44:48 -05:00
Nika Layzell ff8b5bd178 Bug 1414974 - Part 3: Move Get{Inner,Outer}WindowWithId onto the specific subclasses, r=smaug
These were originally exposed directly as static methods on nsGlobalWindow, but
as they are clearly associated with either the inner or outer window, it makes
more sense for them to be called as such.

MozReview-Commit-ID: LFq8EfnhDlo
2017-11-09 10:44:47 -05:00
Nika Layzell 3409141758 Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.

MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Narcis Beleuzu 5c75d26539 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 2a7e5e535f8d93c3bdab48b66f165bf359c49066
2017-11-28 12:04:56 +02:00
Narcis Beleuzu c8eee474a7 Backed out changeset e114b48a4e78 (bug 1419378) for merge conflict. on a CLOSED TREE 2017-11-28 12:03:06 +02:00
Munro Mengjue Chiang f2c94e9c10 Bug 1418331 - add null protection. r=drno
MozReview-Commit-ID: 5RnEwdjqdz4

--HG--
extra : rebase_source : fc14be6e24f87ae8b23576bf9cd399291249ae74
2017-11-23 23:52:23 +08:00
Alex Chronopoulos a85432b9c9 Bug 1419378 - Fail before stream init when output number of channels is zero. r=padenot
MozReview-Commit-ID: ECw68Y74HsY

--HG--
extra : rebase_source : fe40992d163e0d71ef1ac7f8b6a5274c6bdca3a0
2017-11-24 17:55:55 +02:00
Gerald Squelart 112525df79 Bug 1329385 - Fix leak in GMPServiceParent::GetContentParent - r=JamesCheng
Using a single-function MozPromise::Then, and capturing a UniquePtr (using
C++14 initialized lambda captures), the PromiseHolder cannot leak anymore.
Also using C++ initialized lambda captures for other variables, to avoid
unnecessary constructions and copies.

MozReview-Commit-ID: DVxyuJNa8YX

--HG--
extra : rebase_source : a7169d616da36597854bf37616228eb72636f2b7
2017-01-18 08:55:57 +11:00
JW Wang 99bc08968c Bug 1420798 - apply the 'ProofOfLock' pattern to MediaCache. r=bechen,gerald
See comment 0 for the detail.

We will replace ReentrantMonitor with Monitor in the future.

MozReview-Commit-ID: 63ygEFWXHZd

--HG--
extra : rebase_source : 71d1049663e5af5ca178402f84fabdc4ab0f8758
extra : intermediate-source : 20d349df7c16227b6fa1cd3c1d38b1065c93da8c
extra : source : 9cdcfd446686eace7258d18262d8dd92c0f70331
2017-11-22 17:14:02 +08:00
James Cheng 4641c3c18f Bug 1420792 -[CID 1422243] Execution cannot reach statement: case 4: in AnnexB::ConvertSampleTo4BytesAVCC. r=jya
We have already early returned by checking nalLenSize == 4. So there is no need to check it again, delete the deadcode.

MozReview-Commit-ID: GEcPGHDslON

--HG--
extra : rebase_source : 78102d946499f5908d7cb20c7bc148cb2fc87821
2017-11-27 11:33:55 +08:00
James Cheng c32d548665 Bug 1420792 - [CID 1422244] Box::mParent is not initialized in default constructor nor in any functions that it calls. r=jya
Set Box::mParent to nullptr as a default value.

MozReview-Commit-ID: E14dPzpFtcd

--HG--
extra : rebase_source : 32999215e789729b54d7ac25d11075a480eb4ae0
2017-11-27 11:33:35 +08:00
Coroiu Cristina 8f9440611e Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-22 01:46:49 +02:00
Alastor Wu 5acb978a09 Bug 1382574 - part1 : create new class AutoplayPolicy to handle autoplay logic. r=jwwang
AutoplayPolicy is used to manage autoplay logic for all kinds of media,
including MediaElement, Web Audio and Web Speech.

MozReview-Commit-ID: R1TxMkarIw

--HG--
extra : rebase_source : 8c608a1d12c8e205391a91f22e1532bc4f2c8f16
2017-11-22 00:33:16 +08:00
bechen@mozilla.com 44a4072755 Bug 1415821 - Correct the behavior for BADCUE state. r=alwu
MozReview-Commit-ID: G59NBC9rcGa

--HG--
extra : rebase_source : 65e54177e6c9fbf964d50059fc38bed4fa3b7f78
2017-11-15 17:21:09 +08:00
bechen@mozilla.com 254e7985a8 Bug 1415821 - Support multi-line parsing for REGION/STYLE block. r=alwu
MozReview-Commit-ID: HhRkv27UPO

--HG--
extra : rebase_source : 91a1342ced7dbdf5956fe1914b2ae4b27aab7bc8
2017-11-15 10:25:02 +08:00
bechen@mozilla.com 7d0a2a4310 Bug 1415821 - Modify .vtt REGION syntax. r=alwu
MozReview-Commit-ID: 4GydOirj87V

--HG--
extra : rebase_source : ec51494805f2c83e06e65c2ad57c531ac7f21c91
2017-11-15 10:24:59 +08:00
Munro Mengjue Chiang 662898ded6 Bug 1388667 - Set the highest resolution requested from multiple content processes. r=jib
MozReview-Commit-ID: w18vAYU0qH

--HG--
extra : rebase_source : 274d75602096713238df644d8b133cea3e655263
2017-11-15 17:31:06 +08:00
JW Wang 5a99c6b197 Bug 1417774 - remove unused MediaResource::Tell(). r=bechen
MozReview-Commit-ID: 3qlP4sSh9kM

--HG--
extra : rebase_source : 4002fec6f8c43abb640f9206cd715f3ecb02b373
2017-11-15 17:18:52 +08:00
Sebastian Hengst 8ed1012b46 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-11-01 22:57:02 +01:00
Sebastian Hengst 4ff29d14f8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSDYk9wLOAM

--HG--
rename : browser/base/content/test/general/browser_bug561636.js => browser/modules/test/browser/formValidation/browser_form_validation.js
rename : browser/base/content/test/general/browser_bug595507.js => browser/modules/test/browser/formValidation/browser_validation_iframe.js
rename : browser/modules/test/browser/browser_bug1319078.js => browser/modules/test/browser/formValidation/browser_validation_invisible.js
2017-11-01 22:55:12 +01:00
Philippe Normand 67cdca88b3 Bug 1413528 - Non-unified build fixes for Apple decoders. r=cpearce
In AppleCMLinker.cpp, Logging.h and PlatformDecoderModule.h are needed for the LOG macro.
In AppleATDecoder.cpp VideoUtils.h is needed because FramesToTimeUnit() is called in ::DecodeSample().

MozReview-Commit-ID: 2guOwAsYJF1

--HG--
extra : amend_source : e1e98650060f8946361823b5e634d5bf51709a0f
2017-11-01 13:49:51 +00:00
Jim Chen ec08814aaa Bug 1406168 - 2. Remove AndroidJNIWrapper; r=snorp
Remove AndroidJNIWrapper. It was primarily used by JNI.jsm and WebRTC.
Usages in WebRTC are replaced with equivalent uses of JNI templates.

MozReview-Commit-ID: DPSeMOtH2wF
2017-11-01 14:48:48 -04:00
JW Wang 85ebf6211b Bug 1413483 - add mPendingSeekOffset to store the seek offset initiated by the cache. r=gerald
Seek() can't create a new channel if the resource is still suspended. we need
to store the seek offset specified by the cache so we know where to seek when
the resource is resumed.

Otherwise the new channel will download data at the wrong position and the
cache will need to run Update() and call CacheClientSeek() again which is
a waste.

MozReview-Commit-ID: 9OJ3FRnKitT

--HG--
extra : rebase_source : 562a1503640e1e25672bf3e693698ecc8ff29db6
extra : intermediate-source : e4945cc86c4c2b31fa3f20a32331db4ca1875c38
extra : source : a65982e09035f4aea7b4dcbde25b2a42565d932f
2017-10-27 14:33:16 +08:00
JW Wang df96a8bd16 Bug 1412205 - MediaCacheStream::Read() should update mStreamOffset before releasing the monitor. r=gerald
MediaCache::Update() depends on mStreamOffset to make decision whether to
read streams or not. It is important to update mStreamOffset before releasing
the monitor so Update() won't make wrong decisions based on the stale value.

MozReview-Commit-ID: 40jUk5xd6GR

--HG--
extra : rebase_source : 40f4a64d0b66886b3a12c374f1bda874f8853750
extra : intermediate-source : 20ad1ad39a1e0c128ffd16e3fa669c9db1bb9c98
extra : source : 04f82ee89d93d5c008e51746c9686b4298e5f44f
2017-10-27 13:56:46 +08:00
Sebastian Hengst 7a0f790c30 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4CDH6A5NT2U
2017-11-01 00:36:12 +01:00
Joel Maher f64f1c090b Bug 1412394 - Disable dom/media/tests/crashtests/1367930_2.html on Android for frequent failures. r=me, a=testonly 2017-10-31 08:47:08 -04:00
Margareta Eliza Balazs a63fdbeabb Merge inbound to mozilla-central r=merge a=merge 2017-10-31 12:46:19 +02:00
Alfredo.Yang 952d71b21f Bug 1412216 - remove ByteReader. r=kinetik
MozReview-Commit-ID: 26Pf8GXXoPh

--HG--
extra : rebase_source : f48fe10a9b421968c23d7eb7000b0508cd90537b
2017-10-25 15:42:34 +08:00
JW Wang 0f871ec228 Bug 1411803 - ensure MediaCache is deleted on the main thread. r=gerald
MozReview-Commit-ID: 4JzTyyPF1uT

--HG--
extra : rebase_source : 5ea6f6636c531a59dd303809c2124757aed6b5d4
extra : source : ef39a9de8d4e36776b97277e74007ceed86e3c89
2017-10-24 10:32:47 +08:00
Attila Craciun 2ae920762e Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-10-31 12:53:23 +02:00
Bevis Tseng 6115852e16 Bug 1409985 - Don't fire DOMEvent during StableState. r=smaug 2017-10-19 18:20:31 +08:00
JW Wang 72da413a88 Bug 1412204 - add a member to ChannelMediaResource to indicate Close() has been called. r=gerald
So we can check this member without calling mCacheStream.IsClosed() which need
to acquire the lock and might block the main thread.

MozReview-Commit-ID: 4SPooaprrOw

--HG--
extra : rebase_source : 36cbb2d02c29737a6b2060d588f4919cb9d55c05
extra : intermediate-source : 213f6fef98475069d2719ec6c9d1afaacb8a80ed
extra : source : 63200b22f2be79d6f0ff158e5b0c8f5b49849bf1
2017-10-27 13:46:44 +08:00
JW Wang b6bd1cf375 Bug 1412188 - ChannelMediaResource shouldn't create new channels when closed. r=gerald
1. Add assertions to functions that shouldn't be called after Close().
2. Early return if closed from Suspend/Resume/Seek which are called asynchronously by the cache.

MozReview-Commit-ID: KZOJer36o77

--HG--
extra : rebase_source : 0c18418062d432a1ff2adbd3226a84cb0e37aa70
extra : source : 3c7dc961721ab975ac6751754d2a8d97e1c4eaff
2017-10-27 12:10:23 +08:00
Jean-Yves Avenard 14413d23f3 Bug 1406503 - P5. Do not ignore small flac packets. r=jwwang
A FLAC packet may have a size as small as 11 bytes. We should parse as much data as we can and not make assumptions on when to stop early.

MozReview-Commit-ID: 9skvwbt15MY

--HG--
extra : rebase_source : e428ba40fb71a4607af5d3be7f7d61ae98631522
2017-10-28 11:11:45 +02:00
Jean-Yves Avenard 241e778f48 Bug 1406503 - P4. Re-create av_parser when flushing. r=jwwang
It is unknown if an av_parser is usable after having been drained. So to be certain, we simply tear it down and re-create it.

MozReview-Commit-ID: 6NFMHbRMwxs

--HG--
extra : rebase_source : c31db990ef04ec2586d965b9a08be47532bd87a2
2017-10-27 00:45:27 +02:00
Jean-Yves Avenard 709d5236b7 Bug 1406503 - P3. Also drain av_parser when draining. r=jwwang
Per FFmpeg documentation: to signal EOF to the av_parser, input length should be 0 (so that the last frame can be output).

MozReview-Commit-ID: F22RcRnT3HS

--HG--
extra : rebase_source : f704e33526347244d38d1ab0b7fa1e5a0cda84cb
2017-10-27 00:41:17 +02:00
Jean-Yves Avenard 58d8f58fdd Bug 1406503 - P2. Use common draining mechanism for both audio and video decoder. r=jwwang
MozReview-Commit-ID: AtDHOuDfpi5

--HG--
extra : rebase_source : bdc16d68a69d8987559663ea1cd2a47405fcaa26
2017-10-26 22:56:32 +02:00
Jean-Yves Avenard e147a460d9 Bug 1406503 - P1. Abstract FFmpeg decoding so that an av_parser can also be used for audio. r=jwwang
MozReview-Commit-ID: 4bNxLhYKqVG

--HG--
extra : rebase_source : fb444f2b51fc6f23d0a4c76db337fd7324c6cc1c
2017-10-26 22:08:33 +02:00
Jean-Yves Avenard a1558ff6b2 Bug 1347352 - Make FFmpeg LogLevel controlled by PDM logging level. r=jwwang
MozReview-Commit-ID: 9yVNXvIhnUP

--HG--
extra : rebase_source : 0ff1ae4fa1ae78e9e06e0c21ec15c235604cb236
2017-10-29 18:29:45 +01:00
Alastor Wu c683d23150 Bug 1362440 - part4 : parsing entire content to decide whether it's init segment. r=jya
The spec [1] defines what's the init segment, and the parser would return error
if the format is not correct.

[1] https://w3c.github.io/media-source/webm-byte-stream-format.html

MozReview-Commit-ID: 3nFHHdn5b89

--HG--
extra : rebase_source : 66fe592958801c4f9e2115f7729df2b9ece55ac3
2017-10-30 17:48:43 +08:00
Alastor Wu 65c50bf89e Bug 1362440 - part3 : add tests. r=jya
MozReview-Commit-ID: C4mXuPsMaF4

--HG--
extra : rebase_source : 11b69bde40b1ca336e2b9272aa2ec26c0e78507d
2017-10-30 17:48:35 +08:00
Alastor Wu 7440c83cae Bug 1362440 - part2 : parsing entire content to decide whether it's media segment. r=kinetik
The spec [1] defines what's the media segment, and the parser would return error
if the format is not correct.

[1] https://w3c.github.io/media-source/webm-byte-stream-format.html

MozReview-Commit-ID: 4hq59Pywz2t

--HG--
extra : rebase_source : 1136d2a673f11d612e0eb711db6affdce42bb525
2017-10-30 15:27:30 +08:00
Alastor Wu 58382a8ca5 Bug 1362440 - part1 : add timecode checking for parser r=kinetik
The spec [1] defines that
"Timecode (e7) MUST appear before Block (a1) or SimpleBlock (a3)".

[1] https://www.matroska.org/technical/specs/index.html

MozReview-Commit-ID: 7g8lgckuNif

--HG--
extra : rebase_source : 4945dc4b0ab4b7480bf9c6416f9776fd6313c1e1
2017-10-30 15:27:27 +08:00
Alfredo.Yang ae23abee61 Bug 1412183 - use BufferReader instead of ByteReader in AnnexB parser. r=kinetik
MozReview-Commit-ID: YZ4vo7o0Gs

--HG--
extra : rebase_source : 01d7242162cc31dfe1d703e4ded03cd8c5d93748
2017-10-25 09:58:43 +08:00
JW Wang cd62426903 Bug 1412187 - ChannelMediaResource::Resume() should call Seek() instead of CacheClientSeek(). r=gerald
CacheClientSeek() will call Seek() asynchronously and should be used by MediaCache only.
ChannelMediaResource::Resume() runs on the main thread and can call Seek() directly.
Note this is a missing change from bug 1411504 P3.

MozReview-Commit-ID: I2X1Rk5HoDV

--HG--
extra : rebase_source : 66dce75aefc4bfebecf69ebe107e9b4c9286f3a5
extra : source : 20e5463e15049095a941f501acd3fa7dd4e9b1db
2017-10-27 11:50:37 +08:00
JW Wang c94f001983 Bug 1412181 - add a proxy to be registered with ClearOnShutdown() to clear MediaCache::sThread. r=gerald
MozReview-Commit-ID: 9SXSKTP9Twb

--HG--
extra : rebase_source : 1cec3d8e307c980e2634fdc43ff9333833cb5547
extra : source : 2fa3d4a310a6e5765ee51cd3115013434d4662e5
2017-10-27 11:38:53 +08:00
Bryce Van Dyk 822e6a7a58 Bug 1367955 - Remove onended handler during ended handling to avoid video.ended race issues. r=pehrsons
Bug 1386489 means that ended is not reliably set in relation to the test
seeking machinery. This results in the following behaviour being possible:
- seekToNextFrame seeks to last frame
- the seek promise resolves and invokes check to see if video has ended
- ended is not yet set (race), so another seekToNextFrame is setup
- onended handler is invoked at some point (1st time)
- seekToNextFrame seeks again, remains at last frame
- oneended handler is invoked again due to the seek (2nd time)
- finish() has been called twice

This changeset should bandaid the above being possible.

MozReview-Commit-ID: BkskWUnaJQ9

--HG--
extra : rebase_source : 0108cf82a805136a87752d0128c1c0f2e7997ff6
2017-10-27 08:32:12 +13:00
Nathan Froyd 24a08c31db Bug 1412547 - avoid unused lambda captures in MediaDecoder.cpp; r=jya 2017-10-28 15:40:15 -04:00
Sebastian Hengst a92de1bfc3 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 5afba38563fd825a1d36aaee0debd5844aca3432
2017-10-27 12:54:29 +03:00
Sebastian Hengst 5c15da1f08 merge mozilla-inbound to mozilla-central. r=merge a=merge
--HG--
rename : testing/talos/tests/__init__.py => testing/talos/talos/unittests/__init__.py
rename : testing/talos/tests/browser_output.ts.txt => testing/talos/talos/unittests/browser_output.ts.txt
rename : testing/talos/tests/browser_output.tsvg.txt => testing/talos/talos/unittests/browser_output.tsvg.txt
rename : testing/talos/tests/profile.tgz => testing/talos/talos/unittests/profile.tgz
rename : testing/talos/tests/ps-Acj.out => testing/talos/talos/unittests/ps-Acj.out
rename : testing/talos/tests/test_talosconfig_browser_config.json => testing/talos/talos/unittests/test_talosconfig_browser_config.json
rename : testing/talos/tests/test_talosconfig_test_config.json => testing/talos/talos/unittests/test_talosconfig_test_config.json
rename : testing/talos/tests/xrestop_output.txt => testing/talos/talos/unittests/xrestop_output.txt
2017-10-27 12:45:34 +03:00
JW Wang 80e976e596 Bug 1412212. P3 - also dump debug info of AudioSink. r=JamesCheng
MozReview-Commit-ID: AnvlXrhdoI5

--HG--
extra : rebase_source : b4d979dba64ea02e85cac0d9613915441dbadd90
2017-10-27 15:36:24 +08:00
JW Wang 33a2764739 Bug 1412212. P2 - compact the output of GetDebugInfo(). r=JamesCheng
MozReview-Commit-ID: 6cAedI4Ax5r

--HG--
extra : rebase_source : d4162dace6c443fa993863c138855b19c33d7b59
2017-10-27 15:03:36 +08:00
JW Wang 0f76002549 Bug 1412212. P1 - the DUMP() macro needs no nsPrintfCString. r=JamesCheng
printf_stderr() already supports string formatting.

MozReview-Commit-ID: 6DhkrUtTP9c

--HG--
extra : rebase_source : e33578d8379903f149fa41cd76a87209ae3ee3e7
2017-10-27 14:58:33 +08:00
Alfredo.Yang 9965b731e6 Bug 1412177 - use BufferReader instead of ByteReader in wave decoder. r=kinetik
MozReview-Commit-ID: 2UBfsXYZ7gw

--HG--
extra : rebase_source : 2bff53b074f30f5bef5ce746a2f0a226f6be678a
2017-10-26 09:19:26 +08:00
JW Wang 48defae102 Bug 1411805 - Update() needs to read some prefs off the main thread. r=gerald
MediaPrefs is our friend.

MozReview-Commit-ID: 3lz5oqUR9R9

--HG--
extra : rebase_source : 31efaf14c29182b00451705b189772aac23acd34
extra : source : 7e9c68fd5fa241fc1d015b352935c2efd0daa1e8
2017-10-24 10:13:30 +08:00
JW Wang 994024afbb Bug 1411504. P8 - return an error for RecreateChannel() when the decoder is shutting down. r=gerald
Otherwise Seek() will continue to call OpenChannel() and hit null-deref for
mChannel is null.

MozReview-Commit-ID: 4nhbF9lUOSR

--HG--
extra : rebase_source : cb58448ddd9e68314b07e6160354d7be9ea2809a
extra : source : 4d50e2d60a4f9a5ababaaa5100b170dd64c73dbc
2017-10-25 09:45:14 +08:00
JW Wang 8715833c55 Bug 1411504. P7 - don't change mChannelOffset in MediaCache::Update(). r=gerald
This is a fix to P3.

Since seek is performed asynchronously by CacheClientSeek(), it is possible
for OnStopRequest() to come before Seek(). Changing mChannelOffset will
cause MediaCacheStream::NotifyDataEnded() to update mStreamLength incorrectly.

mChannelOffset should only be changed in response to channel activities such
as NotifyDataStarted() and NotifyDataReceived().

However, if MediaCache::Update() calls CacheClientSeek() without updating
mChannelOffset, next Update() might make a wrong decision and call CacheClientSeek()
again which is bad. So we add a member mSeekTarget to track if there is a pending
seek on which the stream reading decisions will be made.

MozReview-Commit-ID: VWP0vdlEYM

--HG--
extra : rebase_source : ea0d85bcbcc5d14f1554ebff3d10981a5b17e18a
extra : source : 339b9323b583849ac88e39da19670f6b26772877
2017-10-25 09:37:58 +08:00
JW Wang 8bd1a52d6a Bug 1411504. P6 - acquire the lock for the entire scope of Update(). r=gerald
For it is not safe to access mStreams without the lock off the main thread.

MozReview-Commit-ID: DjVlhxgjVj5

--HG--
extra : rebase_source : b584fe59712430acd4528e6b6cd01ae86dc5761f
extra : source : d7fd550934bfe6967638e42acb076882611792dd
2017-10-24 09:04:06 +08:00
JW Wang a1a46cc301 Bug 1411504. P5 - handle CacheClientNotifySuspendedStatusChanged/QueueSuspendedStatusUpdate off the main thread. r=gerald
MozReview-Commit-ID: 7Wc1tvd3S6x

--HG--
extra : rebase_source : ac9c1da29b4b395c75ced50efc3210f90add4710
extra : source : f4c901cfc7a7510f4ff161406e35d60229e86b98
2017-10-24 10:00:23 +08:00
JW Wang 1196be8421 Bug 1411504. P4 - handle CacheClientResume/CacheClientSuspend off the main thread. r=gerald
MozReview-Commit-ID: GRbcNo7KtKH

--HG--
extra : rebase_source : 030c8808c7702dc8792b22250e3d414154014615
extra : source : 60d50a2829cde9ff2879270f983e23092ca9f426
2017-10-24 09:38:34 +08:00
JW Wang 7a1b18c3ec Bug 1411504. P3 - handle CacheClientSeek off the main thread for we will run Update() off the main thread. r=gerald
MozReview-Commit-ID: 7eavgwkTXx0

--HG--
extra : rebase_source : 26c5c1675281612e2753549839acb73f735b7bc8
extra : source : 42efd7bd8db58c5c42cc266d90100a7ec250ac15
2017-10-24 09:23:12 +08:00
JW Wang c4b8566c71 Bug 1411504. P2 - merge NotifyDataStarted() and SetTransportSeekable(). r=gerald
SetTransportSeekable() is always called after NotifyDataStarted().
This is slightly more efficient for we don't acquire the lock twice.

MozReview-Commit-ID: 9myolomriIQ

--HG--
extra : rebase_source : f33c3be978edacf45d8144af43f45c8ad5e7b53e
extra : source : 2cefaeb1adae7238b77d5e2d1287ae0d96d9f671
2017-10-23 17:00:57 +08:00
JW Wang 1efcf7c612 Bug 1411504. P1 - always require MediaCache to have a thread to run Update() loops. r=gerald
MozReview-Commit-ID: AYVWuN9CU55

--HG--
extra : rebase_source : 0149e330533b96426bdc7817586df8bd85ec1d03
extra : source : c191b4aa350672a4b3c614a2ea5494cdcca71faf
2017-10-23 16:51:17 +08:00
Sebastian Hengst d10e26c913 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-27 00:00:25 +02:00
Nils Ohlmeier [:drno] daf7230f6d Bug 1411498: delete unused sipcc states. r=bwc,smaug
MozReview-Commit-ID: DnJrQk4hkYb

--HG--
extra : rebase_source : c615899389154cca4eecdbd6e332986837451d26
2017-10-24 23:40:02 -07:00
James Cheng 884fc56be9 Bug 1411523 - Remove 'this' from lambda captures [self, this] under dom/media r=jwwang
Capturing |this| only if |self| needs to appear more than twice in a lambda.

MozReview-Commit-ID: 38iYDznjgBH

--HG--
extra : rebase_source : 9471fd4519c5c5be6e6e10eb11db8eeb041327d1
2017-10-26 16:59:40 +08:00
Alfredo.Yang a3f0efc656 Bug 1411824 - use BufferReader instead of ByteReader in wave parser. r=kinetik
MozReview-Commit-ID: 1M9lbbgoBpX

--HG--
extra : rebase_source : a418fe623ea1e0030a5e12b4267fd6353f752e2b
2017-10-20 15:34:32 +08:00
Alfredo.Yang 8da0342978 Bug 1411821 - use BufferReader instead of ByteReader in MP3 parser. r=kinetik
MozReview-Commit-ID: BpfCZUG7C6c

--HG--
extra : rebase_source : 45716111d62faac68499f4c369e3cb948de190ce
2017-10-20 11:54:29 +08:00
Alfredo.Yang fc4a02e7c7 Bug 1411815 - use BufferReader instead of ByteReader in ContainerParser. r=kinetik
MozReview-Commit-ID: DB2J7w8PpAJ

--HG--
extra : rebase_source : 113b9832df3ac223c9adbcaa44f224d0c792892b
2017-10-19 11:12:48 +08:00
Jean-Yves Avenard b7f6b46a82 Bug 1366201 - P5. Get around FFmpeg bug with corrupted data. r=gerald
According to FFmpeg documentation, the out parameter is "set to size of parsed buffer or zero if not yet finished. " however this is only the case if no error occurred; otherwise it is left untouched.

We want the invalid content to generate a decoding error, so we set size to inputSize to ensure decoding failed later.

MozReview-Commit-ID: FZeiZUdUtLG

--HG--
extra : rebase_source : 2e81d730bacaea5bb968f704a36b403117dafcba
2017-10-25 18:25:37 +02:00
Alfredo.Yang 41a2709293 Bug 1411525 - use BufferReader in flac/ogg parser. r=kinetik
MozReview-Commit-ID: 5chnxLnpqmY

--HG--
extra : rebase_source : 85e68812f1d354813ae36731a5a36bfe7f58c2e2
2017-10-19 10:16:32 +08:00
JW Wang da256ca76e Bug 1411476. P5 - dump debug info for ChannelMediaResource. r=gerald
MozReview-Commit-ID: GjdtrlNb948

--HG--
extra : rebase_source : 248f4926435118ddc8baa0f901c5e4ec3f699c64
2017-10-25 13:57:39 +08:00
JW Wang 3fef1cee8e Bug 1411476. P4 - rewrite GetDebugInfo() functions to make string concatenation easier. r=gerald
MozReview-Commit-ID: V9cxIZGl8M

--HG--
extra : rebase_source : 10afe3e0e4c7d3d6153ea820d869e192345d755c
2017-10-25 13:13:30 +08:00
JW Wang 6c97c56766 Bug 1411476. P3 - show a more descriptive message in DecodeError(). r=gerald
MozReview-Commit-ID: 2XGYhlalecp

--HG--
extra : rebase_source : 08a70c0f74ea67feb8c456c723f6f485e26e0a2a
2017-10-25 10:38:48 +08:00
JW Wang 6490c484f5 Bug 1411476. P2 - show duration in debug logs. r=gerald
MozReview-Commit-ID: Ir7LFU6Dlei

--HG--
extra : rebase_source : c4094a10e3f312bb9a250e0ce41fc6ac8f1efe23
2017-10-25 10:36:03 +08:00
JW Wang 65fba1f9d2 Bug 1411476. P1 - add a space before mAudioCompleted and run clang-format. r=gerald
MozReview-Commit-ID: DF2BIO97aeB

--HG--
extra : rebase_source : c1ebcbfb8e24fbd79f0acdf5e7bc3b2245d7a3c5
2017-10-25 10:29:16 +08:00
Sebastian Hengst 31bf3a1a42 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4Lk5P5UYmTe
2017-10-24 11:52:35 +02:00
Yoshi Huang 26c9043304 Bug 1407498 - Don't query loadingprincipal in common case. r=baku
We queried 'loadingprincipal' attribute on the common call path, however
this should be queried if it's loaded by System Principal.

Also rename loadingprincipal to triggeringprincipal
2017-10-24 10:13:31 +08:00
Sebastian Hengst 364d36fab2 merge mozilla-inbound. r=merge a=merge
MozReview-Commit-ID: B09kHrHK42C
2017-10-23 23:50:37 +02:00
Sebastian Hengst 18f1987735 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-23 11:46:34 +02:00
Paul Adenot cd9185e874 Bug 1408456 - Convert test_analyserNodeOutput.html to a web-platform-test: test-analyser-output.html. r=karlt
This also brings in and convert some utilities we have in Gecko, that will ease
porting more tests.

MozReview-Commit-ID: 2yPZQO504kH

--HG--
rename : dom/media/webaudio/test/test_analyserNodeOutput.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-output.html
extra : rebase_source : 0a9c9c336b1b53120010a081da131c76f103a838
2017-10-17 14:47:44 +02:00
Paul Adenot 23732e9bcc Bug 1408456 - Convert test_analyserNodeMinimum.html to a web-platform-test: test-analyser-minimum.html. r=karlt
MozReview-Commit-ID: F6VNiYBXr7Z

--HG--
rename : dom/media/webaudio/test/test_analyserNodeMinimum.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html
extra : rebase_source : 4258a557e1bf07e0b1f0cbb3b2e517b2a3c56da9
2017-10-17 14:43:53 +02:00
Paul Adenot fd0d5e5373 Bug 1408456 - Convert test_analyserScale.html to a web-platform-test: test-analyser-scale.html. r=karlt
MozReview-Commit-ID: CUhtCzfoi95

--HG--
rename : dom/media/webaudio/test/test_analyserScale.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-scale.html
extra : rebase_source : caae3eefcc9a1c814083bf7154b30f8b92ae788d
2017-10-17 14:47:32 +02:00
Paul Adenot 03d3466f23 Bug 1408456 - Convert test_analyserNodeWithGain.html to a web-platform-test: test-analyser-gain.html. r=karlt
MozReview-Commit-ID: 7gIj3cdZiZB

--HG--
rename : dom/media/webaudio/test/test_analyserNodeWithGain.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-gain.html
extra : rebase_source : 7571e6d2c8413671e20d36f5687df448c8aecca7
2017-10-16 17:04:45 +02:00
Paul Adenot 8f989cdbf4 Bug 1408456 - Convert test_AnalyserNode.html to a web-platform-test. r=karlt
MozReview-Commit-ID: GR3Ze8KIAKB

--HG--
rename : dom/media/webaudio/test/test_analyserNode.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analysernode.html
extra : rebase_source : fe5552c42600a937c5de004c867bc0e6628b37bc
2017-10-16 17:16:36 +02:00
Makoto Kato 1f86929f6d Bug 1406358 - Keep SpeechDelegate object until speaking is finished. r=eeejay
The delegate property of NSSpeechSynthesizer doesn't seem to add refcount from 10.13, so we have to keep SpeechDelegate object until speech is finished.

MozReview-Commit-ID: EVtMOPytkjR

--HG--
extra : rebase_source : f2a6d97942c19990a16dd68555328ed36280eb4a
2017-10-12 17:17:38 +09:00
Karl Tomlinson 43bad3ff0d bug 1410043 remove over-zealous graph-thread assert in SetCurrentDriver() r=pehrsons
The reverts to accepting ownership of the monitor regardless of the thread, as
accepted prior to
https://hg.mozilla.org/mozilla-central/rev/e3f39de40209#l1.25

As indicated in the SetCurrentDriver() documentation, it can be called on the
main thread during Revive() before another graph thread is started.

At that point mLifecycleState = LIFECYCLE_RUNNING, and so it is not easy to
adjust AssertOnGraphThreadOrNotRunning() to accept this situation without
making it much more liberal.

An alternative would be to change the Revive() methods to set mDriver
directly, but that would differ from the usual driver-switching pattern.

MozReview-Commit-ID: 9O5qakPVML9

--HG--
extra : rebase_source : 82115938ccd164863ddf6f983e7900705844d0ed
2017-10-20 17:59:19 +13:00
Sebastian Hengst af53b8aad8 merge mozilla-central to autoland. r=merge a=merge 2017-10-23 23:52:54 +02:00
Jean-Yves Avenard 858f178676 Bug 1410090 - Remove remnant of FFOS OMX code. r=cpearce
For webrtc, the most important part of the code had already been removed in bug 1355048 and could no longer be called

MozReview-Commit-ID: Fx9XI0zR1gn

--HG--
extra : rebase_source : 360996760abab650684440fbeea258b43dccfd83
2017-10-19 16:51:04 +02:00
Jed Davis 70736cfb1b Bug 1401790 - Remove ProcessArchitecture from IPC. r=billm,jimm
This was used to support cross-architecture NPAPI plugins on OS X, but
we stopped supporting that in 54 (bug 1339182).

MozReview-Commit-ID: 2BcWYD6mguY

--HG--
extra : rebase_source : 6e509a3cc1f356ccd24f1459c43bc8fb66d7b0f4
2017-10-04 20:31:12 -06:00
Sebastian Hengst 8d0319bfa2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gu7wIBFJOqe
2017-10-21 00:05:19 +02:00
Andreas Pehrson b46de63fa2 Bug 1403186 - Add guards and sanity checks for Activated vs Stopped state. r=jib
MozReview-Commit-ID: 8Rdm3I0Z4SP

--HG--
extra : rebase_source : eccb161b3378961c0a4e01f809a1ac957ae32338
2017-10-02 15:13:15 +02:00
Andreas Pehrson 47611af5a5 Bug 1403186 - Don't call NotifyFinished if not activated. r=jib
MozReview-Commit-ID: JTUIXhK6mfi

--HG--
extra : rebase_source : 8158cf363516013a7dce35a6271dac75ac444ed3
2017-10-03 11:52:18 +02:00
bechen@mozilla.com c09e4a8ee9 Bug 1183495 - part3: Remove mozSrcObject usage. r=jwwang
MozReview-Commit-ID: Gtpne3O0pBQ

--HG--
extra : rebase_source : 87544aa023e5ac079a8ae02de77e2aeab91e97cf
2017-10-20 11:23:41 +08:00
Masatoshi Kimura dbd92543c6 Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
MozReview-Commit-ID: 7JoD4VYzZp3

--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
James Cheng 9406b5b8a2 Bug 1410689 - Early return before creating ChromiumCDM8BackwardsCompat to avoid leak. r=gerald
MozReview-Commit-ID: JQtJxBgzSFC

--HG--
extra : rebase_source : 3fb457062d773f1b44d3bc3bb7051a494e12a787
2017-10-23 11:29:58 +08:00
Tyson Smith 3b3d19504e Bug 1393272 - Add crashtest. r=me
--HG--
extra : rebase_source : 563170306adaadf247f761fb89c18ae91142c856
2017-10-20 08:36:12 -04:00
Paul Adenot e2b0ed260c Bug 1409391 - Remove raw yuv tests and test vectors. r=cpearce
MozReview-Commit-ID: D8TIw6SKgPz

--HG--
extra : rebase_source : 267b7c2bd102a4e37223b279008761a44294073e
2017-10-18 15:47:09 +02:00
James Cheng bcfbcfbc4a Bug 1410022 - Remove redundant PDM::Supports check caused by bug 1407919 part6. r=gerald
MozReview-Commit-ID: EoAARcmhjlV

--HG--
extra : rebase_source : 560d91e004f0787278e7e3181e58c953c27368e5
2017-10-19 18:03:09 +08:00
Sebastian Hengst ac57f6f7df merge mozilla-central to autoland. r=merge a=merge 2017-10-19 11:52:58 +02:00
Matthew Gregan 1e76a370ab Bug 1407487 - P3: Exclude Android when enabling cubeb-remoting. r=kamidphish
MozReview-Commit-ID: 1bi07WmNqgb
2017-10-19 18:02:54 +13:00
Dan Glastonbury dbd544f296 Bug 1407487 - P1: Remove --enable-cubeb-remoting. r=kinetik,rillian
Replace with conditional compilation enabled for Linux targets.

MozReview-Commit-ID: GjD0Ix8aeJW
2017-10-19 18:02:50 +13:00
Ryan VanderMeulen cb612851ed Merge inbound to m-c. a=merge 2017-10-18 21:01:34 -04:00
Alex Gaynor 279b3dd5ce Bug 1409747 - fixed compilation on macOS with the sandbox disabled; r=haik
MozReview-Commit-ID: F9lNO8OPKS4

--HG--
extra : rebase_source : dbf7e1858f712182bab5c85fbd70b5b4293c5db5
2017-10-18 10:27:34 -04:00
Bob Clary 012a6c1870 Bug 1409365 - disable dom/media/test/crashtests/1180881.html on Android 5.0, r=gbrown 2017-10-18 14:46:15 -07:00
James Cheng 6512232414 Bug 1407919 - Part7 - Check bit depth in PDM::Supports. r=gerald,jya
MozReview-Commit-ID: ATW9sZeDCTu

--HG--
extra : rebase_source : d4df293dee735548aa8174e1158b7a87c51c3bec
2017-10-17 01:04:37 +08:00
James Cheng 638d7ea11b Bug 1407919 - Part6 - Check bit depth in WebMDecoder to determine if we support HDR. r=gerald
MozReview-Commit-ID: Jq569mlINNh

--HG--
extra : rebase_source : 57a352d9e621fc9a204f8865784332ec9aab96a5
2017-10-17 15:45:09 +08:00
James Cheng fe306cda12 Bug 1407919 - Part5 - Extract bit depth information from codec parameter string into VideoInfo::mBitDepth. r=jya
MozReview-Commit-ID: GUwSrpbhOxA

--HG--
extra : rebase_source : 2efbf5f6cb61b99059b2d7ae05676af72266d2c2
2017-10-17 11:20:44 +08:00
James Cheng 0052736720 Bug 1407919 - Part4 - Add mBitDepth field into VideoInfo. r=jya
MozReview-Commit-ID: GfQndec1cyB

--HG--
extra : rebase_source : 86f940b5e4a9497fa51dc16c3bbe813698b260bf
2017-10-17 11:17:23 +08:00
James Cheng ed18e57446 Bug 1407919 - Part3 - Add a gtest for testing the extraction function. r=gerald
MozReview-Commit-ID: 7CocV0rLtk7

--HG--
extra : rebase_source : 5fd1ac5e5623b2e4637b0e78541582432a87ac44
2017-10-13 21:17:35 +08:00
James Cheng b40f82f1ce Bug 1407919 - Part2 - Use the helper function to tell if it is a vp8/9 codec string. r=gerald
MozReview-Commit-ID: G0AKSExgm3R

--HG--
extra : rebase_source : 252395963f0f0f9d8d853e83e5cfa4b1f7fc3948
2017-10-13 14:18:29 +08:00
James Cheng 86e88e8319 Bug 1407919 - Part1 - Add an extraction function to parse the RFC-6381 VP9 codec string. r=gerald,jya
MozReview-Commit-ID: Ii0L4IPtzJJ

--HG--
extra : rebase_source : 9d1780e76908095a234a4eed13e792d75a714596
2017-10-13 13:55:05 +08:00
Jesse Ruderman 8a71e39fe1 Bug 497734 - Add crashtests. r=me 2017-10-18 09:43:11 -04:00
Sebastian Hengst f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Phil Ringnalda cf776f840e Backed out 2 changesets (bug 1407487) for Android and hazard build bustage and Linux webspeech test timeouts
CLOSED TREE

Backed out changeset 806976ac38b8 (bug 1407487)
Backed out changeset 0ff7dc9aebd9 (bug 1407487)

MozReview-Commit-ID: HLDEXTRvG7l
2017-10-17 19:49:43 -07:00
Sebastian Hengst f3f32c7851 merge mozilla-central to mozilla-inbound. r=merge a=merge
--HG--
rename : media/libstagefright/binding/include/mp4_demuxer/ByteReader.h => media/libstagefright/binding/include/mp4_demuxer/BufferReader.h
extra : rebase_source : 98d9275bf6065bc701881aed6c4635f1da9ea642
2017-10-18 00:05:25 +02:00
Sebastian Hengst 34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Bob Clary c0eb52d90b Bug 1409203 - disable dom/media/tests/mochitest/test_peerConnection_videoCodecs.html on Android, r=gbrown 2017-10-17 07:20:40 -07:00
Randell Jesup 6ccd0752b4 Bug 1407680: Set DelayAgnostic and ExtendedFilter options r=dminor
This was lost due to API changes in the update to upstream v57
2017-10-17 16:27:20 -04:00
Boris Zbarsky fb684cc726 Bug 1409152. Add an nsTArray::ContainsSorted method. r=froydnj 2017-10-17 15:39:59 -04:00
Alastor Wu c8a9b504ed Bug 1408987 - Part 2: Make mManager thread-safe. r=jya
mManager would be accessed in both main thread and task queue, and be set on task
queue, so we need to make sure it's thread-safe.

MozReview-Commit-ID: m76KeEsDgB
2017-10-17 16:53:54 +08:00
Alastor Wu bbdf374f35 Bug 1408987 - Part 1: Add OnTaskQueue() assertion to clarify functions' running thread. r=jya
MozReview-Commit-ID: 36sqB5SlOd
2017-10-17 15:58:44 +08:00
Dan Minor 1d0e9fe0b4 Bug 1404250 - Ensure that target bitrate is between minimum and maximum bitrates in VideoConduit; r=pehrsons
MozReview-Commit-ID: Am19abfrETx

--HG--
extra : rebase_source : 7906e80ab0a07cc5ffb7940a4f362b709a4bacbc
2017-10-10 10:43:09 -04:00
Alastor Wu def6113401 Bug 1409274 - remove the lock for SourceBufferTaskQueue. r=jya
It would only be accessed on task queue now, so we don't need to lock it.

MozReview-Commit-ID: 6jd36TQW4aA

--HG--
extra : rebase_source : e8bb53a226154312496149ab8f6b00dead49a3b6
2017-10-17 15:46:26 +08:00
Sebastian Hengst 32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
JW Wang ee83cd683f Bug 1400674 - fix the algorithm of filling audio gaps with silence. r=jya
MozReview-Commit-ID: Hjsboq6PdlN

--HG--
extra : rebase_source : b92dbbe184563b71bb9cfc541a310ae60d41d68d
2017-10-13 17:24:24 +08:00
Ethan Lin f585fef0f1 Bug 1408296 - Enable some crashtests for webrender. r=kats
MozReview-Commit-ID: 543ZYLhacx8

--HG--
extra : rebase_source : 247ddffeba52e7a7fbe864c2644be66b164ceb24
2017-10-13 11:56:04 +08:00
Chris Pearce 2ba329dae6 Bug 1409178 - Move DecoderTraits::CreateDecoder() to ChannelMediaDecoder::Create(). r=jwwang
Now DecoderTraits doesn't need to depend on ChannelMediaDecoder.

MozReview-Commit-ID: D4AUiV2eGWy

--HG--
extra : rebase_source : 38e6c4cdd0f7e32473c6945550bca6fd0cc72bf2
2017-10-16 22:55:26 +02:00
Chris Pearce 48475f5f0b Bug 1409178 - Merge InstantiateDecoder and DecoderTraits::CreateDecoder. r=jwwang
CreateDecoder is the only caller of InstantiateDecoder, and all CreateDecoder
does is call InstantiateDecoder.

MozReview-Commit-ID: KwwL2el8L4x

--HG--
extra : rebase_source : bff225558fd2de535c2cb010eb35b95c6d9469e5
2017-10-16 22:42:32 +02:00
Chris Pearce eb61536947 Bug 1409178 - Remove MediaDecoder::InitStatics() since it's a no-op. r=jwwang
MozReview-Commit-ID: Leo5wNaxpjg

--HG--
extra : rebase_source : 2555c7dc26ca6867e79322bd572085a0cdfeb3b2
2017-10-16 22:39:02 +02:00
Chris Pearce 1d354be8e8 Bug 1409060 - Don't include necko-config.h in MediaDecoder.h. r=jwwang
MozReview-Commit-ID: 2RmqxUayD0L

--HG--
extra : rebase_source : ac868ce7df6a308a9005ce89c725616006c666ba
2017-10-16 17:54:18 +02:00
bechen@mozilla.com fbee889f6c Bug 1408693 - Add a lock to protect the sGPUCrashDataMap. r=jwwang
MozReview-Commit-ID: 7NDcoGMkKZ3

--HG--
extra : rebase_source : 206af0de83a1fb4fb5258202a25de8484a9e2bef
2017-10-16 14:03:04 +08:00
Kris Maglione 60d080b412 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu

--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
Andreas Pehrson 784074488d Bug 1407842 - Wrap fullscreen api calls with SpecialPowers. r=jib
MozReview-Commit-ID: 9bCO80q2sJB

--HG--
extra : rebase_source : d2bc481190e78c4876f4058f531b582df705e809
2017-10-12 11:38:27 +02:00
Dan Glastonbury 3490136c59 Bug 1407487 - P1: Remove --enable-cubeb-remoting. r=kinetik,rillian
Replace with conditional compilation enabled for Linux targets.

MozReview-Commit-ID: GjD0Ix8aeJW

--HG--
extra : rebase_source : 18dd93eda0a9ebc1846a876caa4f5d27d8b75909
2017-10-12 10:32:29 +10:00
Sebastian Hengst fea24c0daf merge mozilla-central to autoland. r=merge a=merge
--HG--
extra : rebase_source : 819bdfcc5e3f50cb5a3d8d76ce1f88ceeb0dd5a9
2017-10-17 23:54:52 +02:00
Ralph Giles 1809099a2f Bug 1409105 - Downsample av1 images unconditionally. r=kinetik
Adding partial support for 10/12-bit video images seems to have
broken the native pixel-stride support we were using to pass
8-bit AV1 frame data formatted in 16-bit pixel values, resulting
in vertical green lines.

Revert to the earlier behaviour of always downsampling to 8 bit data.
This is slower for the demo stream, but at least displays correctly.

MozReview-Commit-ID: 8kSd9kph9DE

--HG--
extra : rebase_source : 040795b4d99a2001397c0021f34d39535aa4aa2d
2017-10-17 12:24:50 -07:00
Sebastian Hengst ffcd2ce160 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : ef359be373a97cad5a91f0150a46add4c3d8ab7c
2017-10-18 15:54:23 +02:00
Jean-Yves Avenard 38b456068a Bug 1409272 - P2. Pre-roll vorbis by 80ms when seeking. r=gerald
The value by which we pre-roll is inconsequential, so long as we seek to the previous packet than the one we want. So 80ms will do.

MozReview-Commit-ID: 8iPOtjReZnb

--HG--
extra : rebase_source : 42908c6afc84cf783356fb7311ffe99b4ec76d96
2017-10-17 16:07:26 +02:00
Jean-Yves Avenard 85eb08473d Bug 1409272 - P1: Remove unnecessary and/or unused variables. r=jwwang
MozReview-Commit-ID: J9qiqEfU05N

--HG--
extra : rebase_source : 1cd492bc252b19598115c03165e034faced12ffd
2017-10-12 19:07:09 +02:00
Dan Banner 7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Randell Jesup 336209d98d Bug 1408716: Remove unneeded dynamic_cast r=drno 2017-10-15 07:47:14 -04:00
Chung-Sheng Fu 6eb3e9c2c9 Bug 967895 - Ask for placeholder data when image extraction is not allowed (Tor 6253). r=jrmuizel
MozReview-Commit-ID: AJ5F6M5S83U

--HG--
extra : rebase_source : 894b16575ebbccc26c5b639d7526cb473501d9d2
2017-08-22 14:23:41 +08:00
Kilik Kuo 58868278cc Bug 1393272 - Use original width and height if either the scaled width or height is 0. r=jya
MozReview-Commit-ID: 3y4c5zJZD0a

--HG--
extra : rebase_source : ec0d168f544be8dea1cbf63d9b2c253ea139286c
2017-10-12 16:40:50 +08:00
Jean-Yves Avenard e891f573a5 Bug 1407940 - P2. Only ever access mTaskQueue in a thread-safe fashion. r=alwu,gerald
mTaskQueue is only read on the main thread, but read and written on the demuxer's taskqueue. We need to ensure that accesses are synchronised.

MozReview-Commit-ID: Gbc15iYgZOe

--HG--
extra : rebase_source : 006ff3f73c9895fa2f29e56123e690cdf66fe2c5
2017-10-12 13:30:47 +02:00
Jean-Yves Avenard 51e48cb035 Bug 1407940 - P1. Use Mutex in place of Monitor. r=gerald
MozReview-Commit-ID: Dy2WhS0YOq1

--HG--
extra : rebase_source : 9ce10f7c7c811d0f73ef39a6439cac92686f9793
2017-10-12 11:15:20 +02:00
Ryan VanderMeulen cc54a93021 Bug 1257700 - Add crashtest. r=me 2017-10-12 22:41:13 -04:00
Gerald Squelart ae565b2faa Bug 1407917 - Simplify DDLogger string-logging functions - r=jwwang
Removed non-eager DDLogValue() functions, too confusing for not much value;
users should use macros first anyway.

Changed `EagerLogValue(..., const char (&aLiteral)[N])` to take `const char*`,
it's cleaner and simpler.


MozReview-Commit-ID: J7xcoPkp6Nf

--HG--
extra : rebase_source : 41040c98b89c3035c823a4a9775e727038c07590
2017-10-12 17:51:41 +11:00
Alastor Wu b8237a2029 Bug 1247189 - part5 : use IsCurrentThreadIn() as a main criteria to determine whether we're on the task queue or not. r=jya
The use of the TrackBuffersManager once detached is explictly forbidden, as such
OnTaskQueue() can only be used before the DetachTask ran: we now strongly assert
as such.

MozReview-Commit-ID: ycOI4QRElb

--HG--
extra : rebase_source : ecce8ac75587470c15268ab729b068f049702a8a
2017-10-12 10:49:25 +08:00
Alastor Wu b4c4772190 Bug 1247189 - part4 : ensure we always detach TBM from demuxers. r=jya
Ensure the TBM would always be detached from demuxers, before calling
TBM::detach().

MozReview-Commit-ID: DLWZHB3M3GG

--HG--
extra : rebase_source : 9e455022ba9360fb549222e9ad1238a3ae9d88ad
2017-10-12 10:49:21 +08:00
Alastor Wu 023e34cbe4 Bug 1247189 - part3 : don't process any task after detached. r=jya
From [1], the task was executed after finished detach task. It would be caused
by queuing two detach tasks in the task queue.

If the previous detach task is still waiting in the task queue when we're calling
the second detach(), then we might have two detach tasks in the queue.

[1] https://treeherder.mozilla.org/logviewer.html#?job_id=134315866&repo=try&lineNumber=2540

MozReview-Commit-ID: HohgKqeZy0s

--HG--
extra : rebase_source : 0d20f1b8648acaf2ed8e75b2631e905629c2abaf
2017-10-12 10:49:10 +08:00
Alastor Wu 5a164c7e06 Bug 1247189 - part2 : remove reference to TrackBuffersManagers once detached. r=jya
Should never access the TrackBuffersManager once the SourceBuffer has been detached.

MozReview-Commit-ID: EgVINj9B1vZ

--HG--
extra : rebase_source : 4b4dc3e5c4b507fe4cc40e80f507b575a8b87eb3
2017-10-11 10:55:21 +08:00
Alastor Wu d9f5f478d9 Bug 1247189 - part1 : should detach TBM after detaching it from demuxers. r=jya
After detaching TBM, we should not access it anymore. So we should finish all
other related detaching process, before detaching TBM.

MozReview-Commit-ID: 8bNzqXVHVyy

--HG--
extra : rebase_source : e135eb3d0fd4e5c41bbac4ebfc8d6fcbd1b32d5b
2017-10-11 10:49:05 +08:00
Gerald Squelart 6e866f3624 Bug 1407909 - Rename DDLogClass to DDLogCategory - r=jwwang
MozReview-Commit-ID: GOTQnNM3MrV

--HG--
rename : dom/media/doctor/DDLogClass.cpp => dom/media/doctor/DDLogCategory.cpp
rename : dom/media/doctor/DDLogClass.h => dom/media/doctor/DDLogCategory.h
extra : rebase_source : 6275018142832a46c3ad145dd5f0edbc00501cc2
2017-10-12 16:15:35 +11:00
Ryan VanderMeulen 0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Tom Ritter 701ee70a22 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : fe434db73a8da686391462c12b91648348abcdc9
2017-10-09 15:01:48 -05:00
Sebastian Hengst 0ed8d9a86e Backed out changeset 26e324eb052d (bug 1247189) for crashing in /media-source/mediasource-errors.html. r=backout
--HG--
extra : amend_source : 39152d1a0836f9f1e22cc4cc6a0a759f4258e81b
2017-10-11 12:45:50 +02:00
Sebastian Hengst 953fafcc3c Backed out changeset 5b9af87e76a9 (bug 1247189) 2017-10-11 12:45:45 +02:00
Sebastian Hengst 6479b83569 Backed out changeset 36a63b9f8dcb (bug 1247189) 2017-10-11 12:45:40 +02:00
Sebastian Hengst ebb7218fe9 Backed out changeset 85d236f46b00 (bug 1247189) 2017-10-11 12:45:34 +02:00
Sebastian Hengst e80bd4f030 Backed out changeset 9be5bbb35797 (bug 1247189) 2017-10-11 12:45:29 +02:00
Sebastian Hengst 57b7c19650 merge mozilla-central to autoland. r=merge a=merge 2017-10-11 11:51:32 +02:00
Sebastian Hengst ed86a2c11f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AgDEPuT8DNK
2017-10-11 11:41:04 +02:00
Sebastian Hengst 044775ad49 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
JW Wang 1a47dd3c0c Bug 1397708 - remove HTMLMediaElement::mBegun. See comment 12 for the root cause. r=cpearce
When network state is changed to IDLE, mBegun is also set to false. [1]
And then when HTMLMediaElement::DownloadResumed(false) is called, network
state is not changed to LOADING for mBegun is false [2]. This prevents us
from firing 'progress' events for the network state is IDLE.

See comment 12 for more details.

[1] http://searchfox.org/mozilla-central/rev/b53e29293c9e9a2905f4849f4e3c415e2013f0cb/dom/html/HTMLMediaElement.cpp#6077
[2] http://searchfox.org/mozilla-central/rev/b53e29293c9e9a2905f4849f4e3c415e2013f0cb/dom/html/HTMLMediaElement.cpp#5673

MozReview-Commit-ID: DOfqKZXAqaz

--HG--
extra : rebase_source : 881b632447d4a78461c235fffad37595f44cc095
extra : source : 2c01d77d3a7e605bf060e17d41afa86ee0f46396
2017-10-10 07:04:18 +08:00
JW Wang acb1219279 Bug 1406821 - improve error logging to facilitate debugging mochitest timeouts in OPT builds. r=kinetik
MozReview-Commit-ID: KTmGRueZkxF

--HG--
extra : rebase_source : f6eb1fcdf9cda7cb6b9e8610c567451111386686
extra : intermediate-source : f06e68706b55b602ccb650641da8186bf74ad1a3
extra : source : 1ad5c0d65ecc4875bd5dc388606bf42e363f9353
2017-10-09 10:18:37 +08:00
Jean-Yves Avenard d34a7ebdc5 Bug 1407243 - Don't immediately fire canplaythrough for infinite/live streams. r=jwwang
MozReview-Commit-ID: 2LQFa8PHvO5

--HG--
extra : rebase_source : 3534a963202658870221fca9cc238185d7e55156
2017-10-10 16:14:24 +02:00
James Cheng 019e9610a0 Bug 1407523 - Add more detailed message when GetCDM failed. r=cpearce
MozReview-Commit-ID: qEpvjyc6bY

--HG--
extra : rebase_source : 09e0579a76362d409749daf9b53e6a21da3818e3
2017-10-11 14:04:16 +08:00
Alastor Wu 8ef6776c31 Bug 1247189 - part5 : use IsCurrentThreadIn() as a main criteria to determine whether we're on the task queue or not. r=jya
The use of the TrackBuffersManager once detached is explictly forbidden, as such
OnTaskQueue() can only be used before the DetachTask ran: we now strongly assert
as such.

MozReview-Commit-ID: ycOI4QRElb

--HG--
extra : rebase_source : 44ea3d0eb292e5c285d0aa4e10eefa41f20beed7
2017-10-11 16:12:13 +08:00
Alastor Wu f519e79462 Bug 1247189 - part4 : ensure we always detach TBM from demuxers. r=jya
Ensure the TBM would always be detached from demuxers, before calling
TBM::detach().

MozReview-Commit-ID: DLWZHB3M3GG

--HG--
extra : rebase_source : 0334b71534cfaccaf1d8985d827fe4e5d5bf0e9f
2017-10-11 11:01:08 +08:00
Alastor Wu a4ae0238e3 Bug 1247189 - part3 : don't process any task after detached. r=jya
From [1], the task was executed after finished detach task. It would be caused
by queuing two detach tasks in the task queue.

If the previous detach task is still waiting in the task queue when we're calling
the second detach(), then we might have two detach tasks in the queue.

[1] https://treeherder.mozilla.org/logviewer.html#?job_id=134315866&repo=try&lineNumber=2540

MozReview-Commit-ID: HohgKqeZy0s

--HG--
extra : rebase_source : b1dc3193d839ef3776195901339fae24f328207b
2017-10-11 11:00:57 +08:00
Alastor Wu afaf8c616f Bug 1247189 - part2 : remove reference to TrackBuffersManagers once detached. r=jya
Should never access the TrackBuffersManager once the SourceBuffer has been detached.

MozReview-Commit-ID: EgVINj9B1vZ

--HG--
extra : rebase_source : 4b4dc3e5c4b507fe4cc40e80f507b575a8b87eb3
2017-10-11 10:55:21 +08:00
Alastor Wu e750a6aff2 Bug 1247189 - part1 : should detach TBM after detaching it from demuxers. r=jya
After detaching TBM, we should not access it anymore. So we should finish all
other related detaching process, before detaching TBM.

MozReview-Commit-ID: 8bNzqXVHVyy

--HG--
extra : rebase_source : e135eb3d0fd4e5c41bbac4ebfc8d6fcbd1b32d5b
2017-10-11 10:49:05 +08:00
Jan-Ivar Bruaroey 6a80cdfeb9 Bug 1406988 - Assert MediaManager invariant where applicable, and check for existence everywhere else. r=pehrsons
MozReview-Commit-ID: KfGP96IE17G

--HG--
extra : rebase_source : d03aeea5f8809b07d2172ee706a616b863526505
2017-09-29 15:06:51 -04:00
Andreas Pehrson 2acc2e8b7e Bug 1406027 - Always use the mixer so AudioCallbackDriver can track processed samples. r=padenot
This is unnecessary work but simpler than adding a path to, or refactoring, AudioCallbackDriver::DataCallback.

MozReview-Commit-ID: GLNoBqxEuwz

--HG--
extra : rebase_source : b5ef6b2e1506e68d41b22ad557968d70214fbd9f
2017-10-06 12:42:11 +02:00
Karl Tomlinson 449d985d8e bug 1406831 don't tolerate just owning the monitor if AssertOnGraphThreadOrNotRunning() is not called on the correct thread r=pehrsons
Owning the monitor is not sufficient for consistent state if state can be
accessed without the monitor.

The requirements for SetCurrentDriver() are tighted to require both the
monitor and correct thread, as CurrentDriver() can be called either with the
monitor or on the graph thread.

MozReview-Commit-ID: 90q7Pfa8jxn

--HG--
extra : rebase_source : 6cbcc334dc2bd355d2e9afdebda45a9624edda4b
2017-09-28 15:30:48 +13:00
Karl Tomlinson 4bd4041ca0 bug 1406831 tighten AssertOnGraphThreadOrNotRunning() to not accept graph thread after mDetectedNotRunning r=pehrsons
This also permits setting mDriver to null after mDetectedNotRunning, which is
useful for fixing bug 1406830.

MozReview-Commit-ID: EEgAxqPQPRI

--HG--
extra : rebase_source : 56e1583a0090e683e92463536637d0f1460cb727
2017-09-28 12:17:22 +13:00
Karl Tomlinson b6f526449e bug 1406831 simplify AssertOnGraphThreadOrNotRunning() r=pehrsons
mLifecycleState is always > LIFECYCLE_RUNNING when mDetectedNotRunning

MozReview-Commit-ID: Ds6ybTv4miA

--HG--
extra : rebase_source : 71aea6693026dc919ea6d2096f55152ae12bc58e
2017-09-28 12:10:59 +13:00
Sebastian Hengst ca5a50735f merge mozilla-central to autoland. r=merge a=merge 2017-10-10 06:17:48 -03:00
Sebastian Hengst 1a4a26905f merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-10 06:12:26 -03:00
Jean-Yves Avenard 0de5aed9f7 Bug 1405110 - P2. Never attempts to upload to D3D11 surface in parent process. r=mattwoodrow
Accessing the graphic device driver from the parent process, should the drivers crash have serious consequences (the whole browser dies).

MozReview-Commit-ID: EXXRBnDobQw

--HG--
extra : rebase_source : d5609f1e088c7bbe92d6e46e66e1fb5538d5caac
2017-10-09 11:10:18 +02:00
Karl Tomlinson 3a143e4a1f bug 1404220 assign zero to AUDIO_FORMAT_SILENCE enumerator r=padenot
I don't know whether or not another zero initial AudioChunk member value
makes initialization more efficient, but zero for silence is more intuitive
for humans.

MozReview-Commit-ID: JEYv65btMul

--HG--
extra : rebase_source : 3089362ce4773da91c7139a3127e1491cbcf1dc5
2017-10-09 15:48:49 +13:00
Karl Tomlinson 5ea2376fe3 bug 1404220 remove explicit unit volume AudioChunk settings, which are now initialized at construction r=padenot
MozReview-Commit-ID: EahkZtZAb18

--HG--
extra : rebase_source : 15e82320ed6712ebc642deabac9dc1e766c01836
2017-10-06 18:48:12 +13:00
Karl Tomlinson 03ead4bc67 bug 1404220 reset mBufferFormat (and mVolume) when resetting mSharedChannels r=padenot
MozReview-Commit-ID: BP4fJLarEyE

--HG--
extra : rebase_source : 3d1e7550267c4e284aafb869015f63ae3d918e51
2017-10-09 16:56:55 +13:00
Karl Tomlinson f3b25c6e88 bug 1404220 provide default initializers for all AudioChunk members r=padenot
This avoids any risk of undefined behavior when evaluating uninitialized
members, during copies for example, and makes it safe to test mBufferFormat
when null.

MozReview-Commit-ID: IMAyZ1CSHbk

--HG--
extra : rebase_source : b02431634732cf63d6fe9ede5eb1400a2baa6308
2017-10-06 18:28:11 +13:00
Sebastian Hengst aa7c8d6587 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-09 23:58:00 +02:00
Joel Maher 5f7217fd0d Bug 1403307 - Disable dom/media/test/test_mediarecorder_pause_resume_video.html on debug for frequent failures. r=me, a=test-only 2017-10-09 15:44:29 -04:00
Sebastian Hengst 92ee8df522 Backed out changeset 71790f0ea832 (bug 967895) 2017-10-09 19:18:12 +02:00
Sebastian Hengst aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Nicholas Nethercote 8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Sebastian Hengst b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Alex Chronopoulos 643923ac4c Bug 1400889 - Keep constant output channels in MediaStreamGraph. r=padenot
MozReview-Commit-ID: JlQdxU0aNOf

--HG--
extra : rebase_source : 25b6f223c2158a4eb9175731cdbb8521de4ce312
2017-10-03 17:56:53 +03:00
John Lin 00a6c9045b Bug 1403849 - p3: add telemetry to record tunneled playback support. r=francois,jya
MozReview-Commit-ID: 52HCnvYT56P

--HG--
extra : rebase_source : f2b3b390e326328b90cce2dfc659972fed7ed02e
2017-09-29 18:12:09 +08:00
JW Wang e1a489f570 Bug 1405962. P2 - use thread-safe ref counting. r=gerald
These listeners will be AddRefed/Released off the main thread when
OMT data delivery is enabled.

MozReview-Commit-ID: CSOBgNNf3OW

--HG--
extra : rebase_source : d9085c6447e51d3aa9cad79fa1e25d986fdee792
extra : intermediate-source : 21be6f0003e6d3ccf4448e6574ea5d3122665155
extra : source : 8ce13766af359b5e55524e47ea74bcfc0e0133f8
2017-09-20 17:14:01 +08:00
JW Wang b2cbe2833f Bug 1405962. P1 - give MediaCache a thread on which we will run data callbacks from the HTTP channel. r=gerald
MozReview-Commit-ID: Av7bFGx9SW

--HG--
extra : rebase_source : 296a6137ee63328e11eb11a8ee3430979cf8e5a8
extra : intermediate-source : 9634a9cd63e188799fe691cfe7108a173db503d5
extra : source : 43860a593eb810088adac150c0fa85cf8133ce17
2017-09-13 16:51:12 +08:00
Chris Pearce fe9919cbfa Bug 1405697 - Move MediaPrefs include from MediaResource.h into cpp file. r=jwwang
This moves the include into the file where it's used, and means I don't need
to import it into gecko-media crate yet.


MozReview-Commit-ID: JnEgtwnLxgO

--HG--
extra : rebase_source : 84f9b98e3c64dc1a337a12b714fd4c8bc45429a1
extra : source : 396e995935c6ada2a069c56cd1ede3c9ef418f31
2017-10-05 09:27:15 +02:00
Chris Pearce 0a258eeace Bug 1405697 - Move MediaResourceIndex implementation to MediaResource.cpp. r=jwwang
MozReview-Commit-ID: 7GCgaA8jJmU

--HG--
extra : rebase_source : 7125dcf91c360e783f6ea6c4e425071c39cd85cf
2017-10-04 21:25:19 +02:00
Chris Pearce c16ed38cc5 Bug 1405697 - Move BaseMediaResource implementation into cpp file. r=jwwang
This means MediaResource.cpp now only contains the stuff for the MediaResource
super class, and MediaResourceIndex.

MozReview-Commit-ID: 5xFxibn0aJ4

--HG--
extra : rebase_source : 4cb940008abb62c43759689cdc9e034d25b7e36f
2017-10-04 20:34:07 +02:00
Chris Pearce 47c2e3ae92 Bug 1405697 - Move BaseMediaResource declaration to its own file. r=jwwang
This means we can simplify MediaResource.h to only include the abstract
interface, and MediaResourceIndex.

I also had to add a few includes here and there to fix the non-unified build.


MozReview-Commit-ID: 4R7LTXq25dm

--HG--
rename : dom/media/MediaResource.h => dom/media/BaseMediaResource.h
extra : rebase_source : edef4a65df4dcb92f8536052d170d78f95315753
2017-10-04 20:57:11 +02:00
Chris Pearce 56d3b01075 Bug 1405697 - Move SEEK_VS_READ_THRESHOLD to where it's used. r=jwwang
It's only used in MediaCache.cpp, so it may as well be defined there.

MozReview-Commit-ID: HcA499xFOUg

--HG--
extra : rebase_source : f25c30d6e9be10549af80d5dfa963ef66abac576
2017-10-04 16:55:50 +02:00
Chris Pearce 1c86050c57 Bug 1405697 - Move HTTP_REQUESTED_RANGE_NOT_SATISFIABLE_CODE to the file it's used in. r=jwwang
It's only used in ChannelMediaResource.cpp, so it may as well be in there.

MozReview-Commit-ID: 5lyeFOoUsUN

--HG--
extra : rebase_source : 15aa06371c90e379e31383d2a8527d865944a4c3
2017-10-04 16:53:19 +02:00
Chris Pearce 53624e3480 Bug 1405697 - Move ChannelSuspendAgent to ChannelMediaResource.h. r=jwwang
It's only used by things in there anyway.

MozReview-Commit-ID: 4Pk12ab6e7U

--HG--
extra : rebase_source : ef9600770d6166fece0d1ae038d0b84cc87f1065
2017-10-04 16:35:11 +02:00
Chris Pearce 9f0aad7b2e Bug 1405697 - Move MediaChannelStatistics to its own file. r=jwwang
It currently resides in MediaResource.h, but it's only used in a
ChannelMediaDecoder and ChannelMediaResource, so it doesn't need to be in the
abstract header.


MozReview-Commit-ID: GskE5mjMav1

--HG--
extra : rebase_source : b42321ddcb1966d4de7203f04852c14f6d271acd
2017-10-04 16:30:32 +02:00
JW Wang 06967bc27c Bug 1402584 - add logs for debugging. See comment 5 for the detail. r=gerald
MozReview-Commit-ID: 48zKkVt5hbK

--HG--
extra : rebase_source : 91a12ef83c5b2560eafe9f41226bfa87413aba92
2017-10-02 13:51:04 +08:00
Jean-Yves Avenard d28995afd5 Bug 1215089 - P10: Enable 10/12 bits video with OGL compositor. r=mattwoodrow
MozReview-Commit-ID: AOSZla0ZX4S

--HG--
extra : rebase_source : b128a7979602fe78111a9c656bf3801fa26dbf56
2017-09-30 01:22:40 +02:00
Jean-Yves Avenard fa09392130 Bug 1215089 - P8: Only enable 10/12 bits videos with software compositor. r=mattwoodrow
MozReview-Commit-ID: 2tdeH2kdZ3P

--HG--
extra : rebase_source : 4c257032868d6c295c72b1b2a3c64d046e903d7f
2017-09-29 21:39:50 +02:00
Gerald Squelart 53d5092208 Bug 1394995 - Initial implementation of DecoderDoctorLogger - r=jwwang
DecoderDoctorLogger and its related classes offer a cheap way to gather log
messages from media stack objects, and then process these messages to extract
object lifetimes and messages related to separate HTMLMediaElement's.

MozReview-Commit-ID: AIf2nAMjoDy

--HG--
extra : rebase_source : cf10185538aded870b9005e88563751f3638ae65
2017-08-28 11:54:12 +12:00
Gerald Squelart fb0f980782 Bug 1394995 - MultiWriterQueue - r=jwwang
Templated queue allowing safe and fast multi-threaded pushes.
Popping is not thread-safe (but concurrent pushes are still allowed.)

MozReview-Commit-ID: BHQ3nOlHkLX

--HG--
extra : rebase_source : 4a5dd6b603cbfe9bdd86df339469e870761d742a
2017-09-15 15:10:17 +12:00
Gerald Squelart 43a5a26e7b Bug 1394995 - RollingNumber - r=jwwang
Unsigned-number value-class with modified comparison operators that keep
ordering consistent across overflows.
I.e., numbers before the overflow (close to the maximum) will be considered
smaller than numbers after the overflow (close to 0).
(Note that such comparisons break down for numbers separated by more than half
the type range.)

MozReview-Commit-ID: 1hdK2JknlqZ

--HG--
extra : rebase_source : 7be3c1be6bc846e17dd5b396fcf097076b9096c1
2017-09-15 14:31:13 +12:00
Gerald Squelart 00c6bbf432 Bug 1394995 - Moved DecoderDoctor files to dom/media/doctor/ - r=jwwang
MozReview-Commit-ID: 9fEmeizzAAw

--HG--
rename : dom/media/DecoderDoctorDiagnostics.cpp => dom/media/doctor/DecoderDoctorDiagnostics.cpp
rename : dom/media/DecoderDoctorDiagnostics.h => dom/media/doctor/DecoderDoctorDiagnostics.h
extra : rebase_source : 38d149815101f222bd42aec7c2f481768c7ab335
2017-08-28 10:37:44 +12:00
JW Wang f23594e114 Bug 1402584. P1 - Backed out changeset 442e8020e2ac. r=gerald
MozReview-Commit-ID: JqZJDTMyKGm
2017-10-08 17:07:55 +02:00
Sebastian Hengst e25887767b Backed out changeset e17425d9f940 (bug 1402584) for frequent mda failures on Windows 10, e.g. in dom/media/test/test_seek-2.html. r=backout
--HG--
extra : amend_source : 6e736c36d615c4662faf63612ef72935eeaa27c9
2017-10-08 01:16:34 +02:00
JW Wang bc8e42651b Bug 1402584. P1 - Backed out changeset 442e8020e2ac. r=gerald
MozReview-Commit-ID: JqZJDTMyKGm

--HG--
extra : rebase_source : 944bc58aa562de066854668746e4af158d747484
extra : source : 394da3f085e52296e62af852add26e72fa688a62
2017-10-07 07:58:19 +08:00
Sebastian Hengst ee63f2e30a Backed out changeset 0317bcff40bc (bug 1406687) for build bustage at testing/gtest/gtest/src/gtest.cc:3871: 'Unused' was not declared in this scope. r=backout 2017-10-09 18:52:39 +02:00
Tom Ritter 22d2cdf063 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : c54b129c6815096035e262322f40aa0884b1ae56
2017-10-09 00:26:16 -05:00
Chung-Sheng Fu 21db685671 Bug 967895 - Ask for placeholder data when image extraction is not allowed (Tor 6253). r=jrmuizel
MozReview-Commit-ID: AJ5F6M5S83U

--HG--
extra : rebase_source : 2d2de5d6c4a7245759fefed468bcc7d82c9cd000
2017-08-22 14:23:41 +08:00
Jean-Yves Avenard 95990a22df Bug 1403622 - Allow VP8 HW decoder where known not to crash. r=cpearce
Windows 10 Falls Creator Update build 16287 is known to have the fix to the problem that made bug 1403063 necessary.

MozReview-Commit-ID: 5m3ZWMes1yl

--HG--
extra : rebase_source : 5f6cd508de75f7e315f4334f76d64b389e4f2ce3
2017-10-09 10:43:54 +02:00
JW Wang 09ecf06972 Bug 1406328 - shut down the MediaCache thread in ShutdownThreads phase. r=gerald
To avoid leaks caused by Dispatch() failures. See comment 0 for the detail.

MozReview-Commit-ID: 3lYxQNj1GPl

--HG--
extra : rebase_source : 8df990476a49544b475df39be789e3cb27853609
extra : intermediate-source : 012f42a1a9d46b0dafa31ca03da1c2bc4fc76d2e
extra : source : c6acb9362de9ab8d130104aaf102de2ecb27dc8f
2017-10-06 17:41:21 +08:00
JW Wang ba8adddaa7 Bug 1405025. P2 - revert Bug 1390443 P1. r=jya
Since we don't use state-mirroring to dispatch nextFrameStatus changes, we
can now revert the workaround of bug 1390443 P1. See bug 1390443 comment 0
for more details.

MozReview-Commit-ID: FRxXUnGC3x2

--HG--
extra : rebase_source : 67192634e001c635e2f15cc77545df79fed11b2d
extra : intermediate-source : 7c02f95ff9d1864fcc53216304b15c266634c753
extra : source : 6a46f27ac74f2c5b013ff8ace3ce8a77279a99b5
2017-10-06 15:58:59 +08:00
JW Wang 4026dc6f84 Bug 1405025. P1 - ensure 'seeking' is fired before 'waiting'. r=jya
Use MediaEventSource instead of state-mirroring to notify nextFrameStatus
changes so we have more control over the order of events.

MozReview-Commit-ID: 3DGtMbghEQm

--HG--
extra : rebase_source : 774fc3da290c033769871a1bd7230177ff24d5bf
extra : intermediate-source : 6583b9281492be1a3bb0771b600cd80efd487af8
extra : source : 00570c319bfbd94970d4c637c7bf81b52d79ca02
2017-10-06 15:48:38 +08:00
Sebastian Hengst ffb949f627 merge mozilla-central to autoland. r=merge a=merge 2017-10-09 11:23:26 +02:00
Tom Ritter f49999833d Bug 1406380 Fix -Wreorder warnings r=njn
MozReview-Commit-ID: 7Zh2pvAMpXR

--HG--
extra : rebase_source : 5052112ad66a66cd2974c4140c3fd430dcaa3adc
2017-10-09 01:36:36 -05:00
Sebastian Hengst 6c8164a609 Backed out changeset 3ceb919e7e82 (bug 1406328) for build bustage at dom/media/MediaCache.cpp:301: 'ShutdownPhase' has not been declared. r=backout 2017-10-09 09:07:01 +02:00
JW Wang 31d4e49bd9 Bug 1406328 - shut down the MediaCache thread in ShutdownThreads phase. r=gerald
To avoid leaks caused by Dispatch() failures. See comment 0 for the detail.

MozReview-Commit-ID: 3lYxQNj1GPl

--HG--
extra : rebase_source : 3ea4958ba21e691f83dbdf36fd820e597d6c5d68
extra : intermediate-source : 012f42a1a9d46b0dafa31ca03da1c2bc4fc76d2e
extra : source : c6acb9362de9ab8d130104aaf102de2ecb27dc8f
2017-10-06 17:41:21 +08:00
Ryan VanderMeulen 329ca88d38 Bug 1270303 - Add crashtest. r=me
--HG--
extra : rebase_source : 55b93b84fe7d13e56c6670ad79c524a2bfe74a31
2017-10-11 11:52:39 -04:00
Ryan VanderMeulen 7080ccf348 Bug 1197935 - Add crashtest. r=me
--HG--
extra : rebase_source : a863e8aaf72a82436399800a35b4b2f12501779b
2017-10-11 11:52:39 -04:00
Ryan VanderMeulen 9be0c9e6b3 Bug 1180881 - Add crashtest. r=me
--HG--
extra : rebase_source : 7eac4a27703f821b35e96100be172eff4bae166e
2017-10-11 11:52:38 -04:00
Joel Maher 5ab59bd06c Bug 1401090 - Disable test_FrameSelection.html,test_HaveMetadataUnbufferedSeek.html,test_EndedEvent.html on android for frequent failures. r=me, a=test-only 2017-10-11 08:45:03 -04:00
Sebastian Hengst 3c466b2f77 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 11:54:59 +02:00
Jonathan Watt 60fa0649f2 Bug 1406819 - Remove various bits of dead code from dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D109
2017-10-11 10:09:13 +01:00
Jan-Ivar Bruaroey b1ad09a50b Bug 1400912 - Remove default values in CamerasChild's LockAndDispatch. r=padenot 2017-09-26 13:03:42 -04:00
Jean-Yves Avenard e9ab6e6eaf Bug 1215089 - P4: Add support to 10 and 12 bits YUV images to FFmpeg decoder. r=kentuckyfriedtakahe
This allows for decoding VP9 profile 2 and 3.

At this stage, it is not possible to render the decoded frames.

MozReview-Commit-ID: DFXMvaM8Ynb

--HG--
extra : rebase_source : e17f24a00595461910f6d0cbd8ef4ba25453e8c5
2017-06-29 23:11:06 +02:00
Jean-Yves Avenard 72e08420b1 Bug 1215089 - P3: Add mBitDepth member to YCbCr data structure. r=kamidphish,mattwoodrow
MozReview-Commit-ID: BNLawJOfj3w

--HG--
extra : rebase_source : f538373e317e3e1e5452c0a0d6e00e810148ea87
2017-06-29 23:09:20 +02:00
Jean-Yves Avenard f57ec08586 Bug 1215089 - P2: Add YUV422 support to ffmpeg decoder. r=kentuckyfriedtakahe
This allows for VP9 profile 1 support.

MozReview-Commit-ID: KymoerXNyzA

--HG--
extra : rebase_source : db8eef696ae19ff7065e34863a1ee4b576369229
2017-06-29 23:07:03 +02:00
Gerald Squelart b0442493e5 Bug 1405531 - Remove unused MediaDataDemuxer::HasTrackType - r=jwwang
The only actual code use in MediaSourceDemuxer can trivially be folded into
its caller GetNumberTracks in the same class.

MozReview-Commit-ID: E6zh98zmJwJ

--HG--
extra : rebase_source : 9358dc37523d6cd7c1a4d5ec62a790db6a092063
2017-10-04 11:40:29 +11:00
Tom Ritter 3912879fa7 Bug 1404147 Fixed Signed/Unsigned comparison of HRESULT r=cpearce
MozReview-Commit-ID: GpOCB2TKGG7

--HG--
extra : rebase_source : 7947c96bfd170183b4e0028cd505a456a10d4b5e
2017-10-02 14:28:24 -05:00
Kartikaya Gupta 22bed6311a Bug 1367879 - Skip test that fails frequently with webrender enabled. r=jmaher
MozReview-Commit-ID: IHTDYmwrsBP

--HG--
extra : rebase_source : 17d403f58faf1e7e1939c3a3eb6e6ed82f49032b
2017-10-04 10:33:12 -04:00
Sebastian Hengst acc85d321d Backed out changeset 7415ed519323 (bug 1215089) for failing mochitest gl's dom/canvas/test/webgl-mochitest/test_video_fastpath_theora.html | texImage2D should not generate any error here, at least on OS X and Linux. r=backout 2017-10-04 16:27:46 +02:00
Sebastian Hengst 46807fbb50 Backed out changeset 3fc22c028eab (bug 1215089) 2017-10-04 16:26:09 +02:00
Sebastian Hengst 7e38be29ab Backed out changeset 2fb3a9820103 (bug 1215089) 2017-10-04 16:26:04 +02:00
Sebastian Hengst 4c598e730b Backed out changeset 34396bd260e5 (bug 1215089) 2017-10-04 16:25:40 +02:00
Sebastian Hengst cc5dc6b3ef Backed out changeset 752c2be759b6 (bug 1215089) 2017-10-04 16:25:29 +02:00
Byron Campen [:bwc] 0c94395051 Bug 1377299: Add packet dump hooks r+drno r=drno,smaug
MozReview-Commit-ID: Jr7n49OOduG

--HG--
extra : rebase_source : 8880b8b6bf842f996f99e86fc45510e59e70a665
2017-06-29 19:14:06 -05:00
Jean-Yves Avenard 5da07f937c Bug 1215089 - P9: Enable 10/12 bits video with OGL compositor. r=mattwoodrow
MozReview-Commit-ID: AOSZla0ZX4S

--HG--
extra : rebase_source : cfd0df81c30e4b84c66bf7e8f8e12b6b650f02e0
2017-09-30 01:22:40 +02:00
Jean-Yves Avenard 7359a43d40 Bug 1215089 - P7: Only enable 10/12 bits videos with software compositor. r=mattwoodrow
MozReview-Commit-ID: 2tdeH2kdZ3P

--HG--
extra : rebase_source : 81505446b84c15ceb4d1ba721adff52aea87a25a
2017-09-29 21:39:50 +02:00
Jean-Yves Avenard c063cb00e7 Bug 1215089 - P3: Add support to 10 and 12 bits YUV images to FFmpeg decoder. r=kentuckyfriedtakahe
This allows for decoding VP9 profile 2 and 3.

At this stage, it is not possible to render the decoded frames.

MozReview-Commit-ID: DFXMvaM8Ynb

--HG--
extra : rebase_source : d9a639c2a65b1fd37d44336310af999e420155fe
2017-06-29 23:11:06 +02:00
Jean-Yves Avenard 89b1091f27 Bug 1215089 - P2: Add mDepth member to YCbCr data structure. r=kamidphish
MozReview-Commit-ID: BNLawJOfj3w

--HG--
extra : rebase_source : 6cd0336506a8feda874f6bd6525da73a745d5100
2017-06-29 23:09:20 +02:00
Jean-Yves Avenard 4bac0ed257 Bug 1215089 - P1: Add YUV422 support to ffmpeg decoder. r=kentuckyfriedtakahe
This allows for VP9 profile 1 support.

MozReview-Commit-ID: KymoerXNyzA

--HG--
extra : rebase_source : 37bcf92e71a0e3b55d70e52e0e3b34d544f67631
2017-06-29 23:07:03 +02:00
Rob Wu 11d4ea9489 Bug 1404661 - Fix typo in comment of flac::FrameHeader::Parse r=kamidphish
MozReview-Commit-ID: 7AlN8i4WYu5

--HG--
extra : rebase_source : 376dfaa2d6bf539972fb31932f8cce561a5d5421
2017-10-01 02:26:38 +02:00
Wes Kocher 382a7d90d6 Merge inbound to central, a=merge
MozReview-Commit-ID: CvJ9hmTQBcR
2017-10-02 16:22:37 -07:00
Andrea Marchesini 9067ec472c Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
JW Wang 23e496f3ed Bug 1404771. P3 - constify some members and fix comments. r=gerald
MozReview-Commit-ID: CMJgmY9Al0k

--HG--
extra : rebase_source : 4bacbc52a0bab984d43802c0a93078297423eaf5
extra : intermediate-source : e19cd1f94a3f876cf9763e4296ca8f145897040f
extra : source : 7da3a65c6620166a88367dc6d1f92184fa07f515
2017-09-20 16:43:19 +08:00
JW Wang ad01d1a091 Bug 1404771. P2 - always access mThrottleReadahead within the lock. r=gerald
So it is easier to run Update() loops off the main thread in the future.

MozReview-Commit-ID: LdxzQf6B3GK

--HG--
extra : rebase_source : 157984edf8ea08270fe61376e67183715b5bd4d4
extra : intermediate-source : f4045ce626977d392c799fae8f3d4f19efe3039f
extra : source : 778256b7055f4a470889eeae063660595d34337f
2017-09-20 16:37:32 +08:00
JW Wang 1ed6e3a966 Bug 1404771. P1 - fix the comment of mStreamLength. r=gerald
mStreamLength is always accessed within the lock. So it is safe to read/write
mStreamLength on all threads.

MozReview-Commit-ID: 9zJ2cwRrL5L

--HG--
extra : rebase_source : 10f282aa1c2fce2b9c0f431afb85e9d8ec7fab74
extra : intermediate-source : 38cac3d9015404aa3d1ddfd438ac57bd915fa0a7
extra : source : 60594740401732695f12f5f5232fa0f8e6681111
2017-09-20 16:29:46 +08:00
Andreas Pehrson 94fb70a59f Bug 1380346 - Apply applyConstraints() properly. r=jib
MozReview-Commit-ID: EOuHS9nYT8S

--HG--
extra : rebase_source : 5d162b361ecfa6611317805a305a6ffcd33e16a2
2017-09-14 19:20:26 +02:00