Commit Graph

11324 Commits

Author SHA1 Message Date
Jean-Yves Avenard
8682fd60e2 Bug 1387801 - Reject invalid H264 content. r=gerald
MozReview-Commit-ID: 9m42TIYgis4

--HG--
extra : rebase_source : b6b7d167c40219b8af97dd3f05e079d4b8db4239
2017-08-06 17:39:03 +02:00
James Cheng
238e3be549 Bug 1387314-Remove NS_DispatchToMainThread and use nsIEventTarget to dispatch instead. r=cpearce
MozReview-Commit-ID: EcEQlLLhU5z

--HG--
extra : rebase_source : bc44b7815a80bb1c63a0a32c82936eac3a311108
2017-08-04 11:31:15 +08:00
JW Wang
b2d75fa057 Bug 1383628. P5 - move CanClone() from MediaResource to BaseMediaResource. r=gerald
1. we move clone related methods to BaseMediaResource which is the only cloneable sub-class of MediaResource.
2. add CanClone() to ChannelMediaDecoder to reduce the dependency on MediaResource for HTMLMediaElement.
   MediaResource should be internal details to MediaDecoder.

MozReview-Commit-ID: Hl2nAiuyTO0

--HG--
extra : rebase_source : 43dd9ee33ef2ef2e9093eb6b264dc174379d61d2
extra : source : 978ded48a90f2c407c4545486243acabf492736a
2017-08-04 15:29:55 +08:00
JW Wang
163c6a8c8b Bug 1383628. P4 - move CloneData() and Create() from MediaResource to BaseMediaResource. r=gerald
Now we can store a more specific resource type in ChannelMediaDecoder.

MozReview-Commit-ID: EzXC547O7aR

--HG--
extra : rebase_source : eea1872eeeee9b5964fcc767c79b0315bf277602
extra : source : 84011bf4847bbed26e89af0b831aded93522f7ac
2017-08-04 14:52:22 +08:00
JW Wang
da1e4aeb7b Bug 1383628. P3 - devirtualize Load() which has no overrides. r=gerald
MozReview-Commit-ID: EZ9jcHiWGZb

--HG--
extra : rebase_source : 6e1547598a5ac1a797ce09d79dc7f2935678570c
extra : source : c7362776a480758a9c12ed69cc155b19872bd238
2017-08-03 17:48:26 +08:00
JW Wang
a8a917b8bb Bug 1383628. P2 - move the call to Load() into Clone(). r=gerald
MozReview-Commit-ID: 9k8BXLwAepI

--HG--
extra : rebase_source : 52d3fb871bad53691585e774c2745f328592eb3f
extra : source : cdc492f87aa634eaaae0809aacb261ad25be7b08
2017-08-03 17:47:23 +08:00
JW Wang
09bd1a691e Bug 1383628. P1 - divide Clone() into 2 functions. r=gerald
Now we have a non-virtual Clone() and a virtual CloneImpl().
We will call Load() inside Clone().

MozReview-Commit-ID: Hd6p206Brhq

--HG--
extra : rebase_source : fe30611f6524234d98494cd55453140e3b78c7d6
extra : source : 517cd32514e65cf5f6cd7fe46acecd7f9aea6310
2017-08-03 17:39:55 +08:00
Masatoshi Kimura
06311d2e3a Bug 1375125 - Remove nsILocalFile. r=froydnj
MozReview-Commit-ID: 6oU6Ya5UXtC

--HG--
extra : rebase_source : 55b6e30aa348c1b939326698b0da7d72c26b479c
2017-08-05 09:43:49 +09:00
Masatoshi Kimura
8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
Ryan VanderMeulen
e0883c892e Bug 1364821 - Fix merge bustage. a=RyanVM
A line was accidentally dropped when resolving merge conflicts between inbound and autoland. CI wasn't amused. This just adds it back.
2017-08-04 15:33:53 -04:00
Sebastian Hengst
765cc1b925 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JhesEg4Bxjy
2017-08-04 19:28:27 +02:00
Bill McCloskey
2273c53b75 Bug 1364821 - Introduce AbstractThread::AutoEnter and remove main thread's AbstractThread::GetCurrent() (r=jwwang)
MozReview-Commit-ID: FSLVn7xe3sq
2017-08-03 14:19:02 -07:00
Sebastian Hengst
5cfce14aba merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-03 12:17:50 +02:00
Jan Varga
fdb1375046 Bug 1283609 - Part 2: Rename BackgroundChild::SynchronouslyCreateForCurrentThread to BackgroundChild::GetOrCreateForCurrentThread; r=billm 2017-08-03 11:21:53 +02:00
Masatoshi Kimura
f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Chun-Min Chang
080eae8651 Bug 1387058 - part2: Early return in AudioNotificationReceiver::NotifyDefaultDeviceChanged if there is no AudioStream; r=jwwang
MozReview-Commit-ID: HLByqFWqCdn

--HG--
extra : rebase_source : 47d5c95dd9ce8fb801ed935919fff50e47967c5d
2017-08-04 15:01:39 +08:00
Chun-Min Chang
bb2563e5f9 Bug 1387058 - part1: Clear the static pointer when no more AudioStreams; r=jwwang
--HG--
extra : rebase_source : 24afc6aa73cdba9340d9678ea45a9aa9265daa75
2017-08-04 14:20:48 +08:00
Gerald Squelart
63070aab2f Bug 1384243 - Sanitize offset inputs in MediaResourceIndex - r=cpearce
Also check that the offset doesn't overflow during reads.

MozReview-Commit-ID: DT5neeZuMZu

--HG--
extra : rebase_source : 1f0de82916ebf770a0ea2570161d607216232dfa
2017-08-01 14:07:55 +12:00
JW Wang
108a5c3b92 Bug 1386478 - don't cap the return value of GetEndTime(). r=jya
A chained ogg file contains multiple streams and timestamps will not
monolithically increase. The current code will cap AudioEndTime()
to the end time of the 1st stream and currentTime won't be updated
correctly when playback position reaches the 2nd stream or later ones.

http://searchfox.org/mozilla-central/rev/bbc1c59e460a27b20929b56489e2e55438de81fa/dom/media/MediaDecoderStateMachine.cpp#3636-3637

MozReview-Commit-ID: DbIspYmEjVv

--HG--
extra : rebase_source : 20004ae6c6d4e15dc8aeebf646efc62342514d24
2017-08-02 10:45:48 +08:00
JW Wang
be3df48dc5 Bug 1384831. P5 - remove unused arguments from HLSDecoder::Load(). r=gerald
MozReview-Commit-ID: JsULuDcMiNa

--HG--
extra : rebase_source : c9c78f57a4fb2278143c8c69343d5e8a97765bbb
extra : source : e019f6fc241c8f35d58a8aa27854159b09dd21f9
2017-07-27 02:54:53 +08:00
JW Wang
ddec7cb574 Bug 1384831. P4 - let HLSDecoder inherit MediaDecoder. r=kikuo
MozReview-Commit-ID: B9XvfbjjMxX

--HG--
extra : rebase_source : eb3212aca6f4c93bffc56bb5e8d75177cb64a28e
extra : source : 7753fca48c5f229ae14aa2e9c08e4d3d86bea39e
2017-07-27 02:52:07 +08:00
JW Wang
e72f601403 Bug 1384831. P3 - let HLSResource notify HLSDecoder directly without going through MediaResourceCallback. r=kikuo
We can't use MediaResourceCallback since HLSDecoder will not inherit ChannelMediaDecoder.

MozReview-Commit-ID: BzKatvYU90Y

--HG--
extra : rebase_source : a3fea763ef5f484fd1e455add4e6e6c91277aff1
extra : source : a9332539c0bc1ef81286b0e119250c3fce84101b
2017-07-26 23:26:17 +08:00
JW Wang
197591cec8 Bug 1384831. P2 - rewrite HTMLMediaElement::InitializeDecoderForChannel() and move HLSDecoder creation code to it. r=gerald
Since we will remove ChannelMediaDecoder from HLSDecoder's base class, we can't
create HLSDecoder in InstantiateDecoder which returns a ChannelMediaDecoder.

MozReview-Commit-ID: 9wcrIVIOZFp

--HG--
extra : rebase_source : cf0e55a6a0eafeb4e34ff1eed5bb7e1d97d73e80
extra : source : edefbf5d7179c5390bd2a25fbbcd025095d39555
2017-07-26 15:49:03 +08:00
Chun-Min Chang
261bda646c Bug 1384944 - Replace NS_ConvertASCIItoUTF16 by NS_ConvertUTF8toUTF16; r=padenot
--HG--
extra : rebase_source : e717dd2c4a0e96edb225443d157b4a761b1ec524
2017-07-28 15:41:20 +08:00
Chun-Min Chang
030729930f Bug 1361336 - part5: Register the AudioStream into AudioNotificationReceiver when it's created; r=cpearce
--HG--
extra : rebase_source : bec94f3f8a710b8b8d21912f0feb5a752e92c7de
2017-07-26 14:50:48 +08:00
Chun-Min Chang
fcac71b722 Bug 1361336 - part4: Create AudioNotificationSender/Receiver to pass the device-changed notification; r=cpearce
--HG--
extra : rebase_source : 698c735d3fe7fc6b47b47416a205dc51e77c9358
2017-07-26 17:00:44 +08:00
Chun-Min Chang
7d076c3ac2 Bug 1361336 - part2: Prevent AudioStream::ResetDefaultDevice() from being called before stream is started; r=cpearce,kinetik
--HG--
extra : rebase_source : 95030be6e9ce493b6d42e837f9a7e652907836a8
2017-07-21 17:45:45 +08:00
Chun-Min Chang
bfe0bce52c Bug 1361336 - part1: A new API for AudioStream that it can reset stream to the default device; r=kinetik
MozReview-Commit-ID: ErUYXK9fUvE

--HG--
extra : rebase_source : ced74fba605b6892674a58611d7eb33616c81ce6
2017-07-12 14:51:07 +08:00
Jan Beich
5c4a94b509 Bug 1385115 - Unbreak build on Tier3 after bug 1382883. r=cpearce
MozReview-Commit-ID: ISTOw1qfxiy

--HG--
extra : rebase_source : 4444849c190f7128d67c53483866ac59c73b2eb9
2017-07-28 11:48:56 +00:00
Sebastian Hengst
915c63c332 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-07-31 11:28:37 +02:00
Nicholas Nethercote
72c884bf74 Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10:00
Nicholas Nethercote
d4f9aa5530 Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj.
--HG--
extra : rebase_source : 6c24fbacb03d4adebe5f22b5e7fc60b069913f20
2017-07-31 14:23:50 +10:00
James Cheng
7236b09a4d Bug 1384578 - Adjust the calling sequence to avoid app crash by race condition. r=jolin
MozReview-Commit-ID: JKtfNYTTCjp

--HG--
extra : rebase_source : 526f6dd42de7170fd7baf49817e6c721245314fb
2017-07-31 11:23:29 +08:00
JW Wang
3c5c5d8ae0 Bug 1385751 - suppress the annoying warnings of flaky timeouts in media tests. r=gerald
MozReview-Commit-ID: dVGqVaITma

--HG--
extra : rebase_source : 4c388a7e1f75fca9c1a35a00d376bf0473a33cbc
2017-07-31 10:35:47 +08:00
JW Wang
ca1f6bc7b4 Bug 1385748. P3 - MediaDecoder::mNextState doesn't need to be a canonical for it has no mirrors. r=kaku
MozReview-Commit-ID: HiiPcKK08az

--HG--
extra : rebase_source : 12db8d11fda2c07401d5ba4b7d4f6f946cc9fb5b
2017-07-31 10:21:43 +08:00
JW Wang
2bd8e28bd6 Bug 1385748. P2 - remove MDSM::mNextPlayState. r=kaku
Following P1, mNextPlayState is no longer used.

MozReview-Commit-ID: 5ABEYMQ5G9l

--HG--
extra : rebase_source : f4cfb050ae19625bc8f6e54f33bb4f0f4e53d059
2017-07-31 10:17:36 +08:00
JW Wang
3bb4ecdddc Bug 1385748. P1 - remove MDSM::IsLogicallyPlaying() which has no callers at all. r=kaku
MozReview-Commit-ID: IfpzTMVtgf6

--HG--
extra : rebase_source : 3a70298f2175cba32dbc47ce4c7d087bff944d44
2017-07-31 10:15:47 +08:00
Munro Mengjue Chiang
d92f208dba Bug 1364038 - Call SourceListener::StopTrack when the coresponding external device is disconnected. r=jib
MozReview-Commit-ID: EfpmXBJf7PP

--HG--
extra : rebase_source : b79b7969c6693ba980c5135784ddb1753e711ec4
2017-07-27 16:51:24 +08:00
Sylvestre Ledru
edbf1ad0a8 Bug 1385701 - Add a missing comma in validBoxes r=jya
MozReview-Commit-ID: 47dldBVVvBo

--HG--
extra : rebase_source : d8785799ebc42b077b709803d8e4037562d791b5
2017-07-30 15:06:05 +02:00
Kaku Kuo
2c2253d77b Bug 1383653 P1 - add debug messages for understanding the status of suspending video decoder; r=jwwang
MozReview-Commit-ID: 2pI6XRQQgbG

--HG--
extra : rebase_source : 68a11362750227812602c07dbcfb7685eb7eb438
2017-07-24 13:21:35 +08:00
Paul Adenot
7f1c17c634 Bug 1384247 - Check if an HTMLMediaElement can be capture before doing it. r=dminor
MozReview-Commit-ID: EWpf2qA2Yce

--HG--
extra : rebase_source : fd990877481c6f3977e2dc0ec615c0282d30123d
2017-07-27 16:02:28 +02:00
JW Wang
675a12c855 Bug 1385155. P3 - let MP4Stream use SourceBufferResource instead of MediaResourceIndex. r=gerald
MozReview-Commit-ID: Gf6FEQAOLRk

--HG--
extra : rebase_source : a7172409051d4078107d35d29927d9af6f5f56a6
2017-07-27 17:58:45 +08:00
JW Wang
aa4fe7edda Bug 1385155. P2 - move MP4Stream into ContainerParser.cpp which is the only user. r=gerald
MozReview-Commit-ID: 4IguqbJn1xd

--HG--
extra : rebase_source : 881a27a24b11e05033e4ae9c9dbfe93f6ec34141
2017-07-27 17:43:09 +08:00
JW Wang
80b7228709 Bug 1385155. P1 - remove dead code. r=gerald
We are able to remove some dead code for BlockingReadIntoCache,
LastReadFailed, ClearFailedRead, Pin and Unpin have no callers at all.

MozReview-Commit-ID: KkywoKznejB

--HG--
extra : rebase_source : c6124bce6eca0b974767073fe1daf51aa50635f2
2017-07-27 17:36:18 +08:00
JW Wang
b9cda6f285 Bug 1384836 - rename MediaDecoderReaderWrapper to ReaderProxy. r=kaku
MozReview-Commit-ID: 7WeNblTnTCG

--HG--
rename : dom/media/MediaDecoderReaderWrapper.cpp => dom/media/ReaderProxy.cpp
rename : dom/media/MediaDecoderReaderWrapper.h => dom/media/ReaderProxy.h
extra : rebase_source : a03573610a8d375fa30b89d90cdf4dc9a4ea3441
2017-07-27 14:49:57 +08:00
Wes Kocher
7a65251f71 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KvG6hKUwF8c
2017-07-27 16:33:25 -07:00
Wes Kocher
7149e44594 Merge autoland to m-c a=merge
MozReview-Commit-ID: 4MCb0ASsMxe
2017-07-27 16:09:49 -07:00
Sebastian Hengst
5a483737cd Backed out changeset 0cce9f382987 (bug 1364038) for failing mda's dom/media/tests/mochitest/test_peerConnection_addSecondVideoStream.html. r=backout on a CLOSED TREE 2017-07-27 18:32:58 +02:00
Bryce Van Dyk
3ef050dcc4 Bug 1382718 - Update video encoder gtest to use appropriate image objects. r=jesup
The image objects used in the TestVideoTrackEncoder.cpp for NV12 and NV21 were
not suitable for storage of these formats. As such the new format detection
code introduced in previous changesets was not correctly be exercised.

MozReview-Commit-ID: 9Tn7Ub4GfeG

--HG--
extra : rebase_source : c40731e0e98fde4ec55e05c899cebf96751317fa
2017-07-25 10:04:57 +12:00
Bryce Van Dyk
04f712fd75 Bug 1382718 - Update detection of image bitmap format in VP8 Encoder. r=jesup
Utilize ImageUtils to detect the bitmap format of images passed to the VP8
encoder, rather than duplicating this functionality in the encoder. Resolve an
issue with incorrect identification of unevenly sized I420 frames that was
breaking screen capture based MediaRecorder. clang-format code which has been
touched.

MozReview-Commit-ID: 4IfKSYxGuAX

--HG--
extra : rebase_source : 837caee9668b935ff9e627479b6e905208cbe4cf
2017-07-24 09:13:01 +12:00