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

12820 Коммитов

Автор SHA1 Сообщение Дата
bechen@mozilla.com de1cb40bf5 Bug 1423659 - Remove ftyp and HasMetadata(). r=alfredo
MozReview-Commit-ID: ChscPHrohHb

--HG--
extra : rebase_source : a2f71af48a01b3c1319dafdb3ec338ba52b7778d
2018-01-10 11:42:59 +08:00
Kaku Kuo 9dbfc93c6f bug 1422239 - relax the resolution limitation of WMF H264 decoder; r=jya
https://msdn.microsoft.com/en-us/library/windows/desktop/dd797815(v=vs.85).aspx
Relax the resolution limitation from "width <= 4096 and height <= 2304" to "any width and height combination as long as the total pixel count is under 4096x2304".

MozReview-Commit-ID: 5wHiJfLaJkp

--HG--
extra : rebase_source : 11bf99d0eb3b50ea0199a7f65e0491e43318d29c
2018-01-08 16:37:40 +08:00
Jan-Ivar Bruaroey 313f7a1ac3 Bug 1429536 - Assure even width and hight for fake:true camera, fixing debug crash. r=ng
MozReview-Commit-ID: mxGcTFbEwe

--HG--
extra : rebase_source : 21a66143070dba55d616750a7733a4fa5848254b
2018-01-10 20:02:18 -05:00
JW Wang 5efcbcb3a8 Bug 1427932. P2 - fix the calculation of |endTime|. r=jya
MozReview-Commit-ID: 2a8FxMdgM8e

--HG--
extra : rebase_source : a287b19c5c2d6d3c5a2fb454c14b390f60e63667
extra : source : 49211ab256d7742cf83b16e6a2fa6ed3d53f1b46
2018-01-04 11:10:19 +08:00
JW Wang b23b5d2214 Bug 1427932. P1 - replace NS_ASSERTION with MOZ_ASSERT to catch more bugs. r=jya
MozReview-Commit-ID: H5SNFz956nG

--HG--
extra : rebase_source : 8ee27dabc1cda0b4001464a1d78705aa2a306cd5
extra : source : ab0dab8a566c0090dd900a9fbcdd97cc7b622cbc
2018-01-04 11:09:54 +08:00
JW Wang b69008df64 Bug 1429280 - the seeking target of exiting dormant should be adjusted by looping. r=chunmin
Otherwise we will seek to a position beyond the duration when exiting dormant
which will fail an assertion in OggDemuxer.

MozReview-Commit-ID: FPWKyd8APrj

--HG--
extra : rebase_source : 89b8cbcfbf9a63d428b9d2a513b2656fc241892f
extra : source : d6a0a81abc7781b6620777ab4cf44222942d78bd
2018-01-10 17:26:17 +08:00
Tom Ritter 2eeb5f801e Bug 1424341 Turn the pref off for existing tests that perform fine-grained timing comparisons r=mrbkap
MozReview-Commit-ID: 4ZyE4ebaCaB

--HG--
extra : rebase_source : 80a138ba722c64885a5f6811d862bdc76389a000
2018-01-10 14:46:34 -06:00
Michael Froman 69d270acdf Bug 1427009 - limit accepted mid length to 16 chars. r=bwc
webrtc.org only supports one-byte rtp header extensions which means
we can only support 16 character mids for now.

MozReview-Commit-ID: C7aTeB5Bi2M

--HG--
extra : rebase_source : e25518d02fb056f82d298f000e37cfe059099a38
2018-01-08 16:23:06 -06:00
Andreas Pehrson 1ee82e204d Bug 1428390 - Remove virtual keyword for overrides in PCameras impl. r=jib
MozReview-Commit-ID: FqhgyTFXH5W

--HG--
extra : rebase_source : d2b308bae88cf0ed70efda87ed725c6f96f96e35
2018-01-08 12:44:16 +01:00
Andreas Pehrson 584ab7f7ca Bug 1428390 - Use mChildIsAlive to decide whether to send replies. r=jib
MozReview-Commit-ID: BmpvYKo1tpJ

--HG--
extra : rebase_source : 8600dc667662467a5312cf8140d60d768fd2de5a
2018-01-08 12:42:55 +01:00
JW Wang debd843644 Bug 1429323 - remove calls to SimpleTest.expectAssertions() from media mochitests. r=bechen
MozReview-Commit-ID: GapLJjIGjmK

--HG--
extra : rebase_source : f9ea3059d2d0abce6caeb69d29e47c410731039d
2018-01-10 14:50:53 +08:00
Gurzau Raul 5ec8060d2b Backed out 2 changesets (bug 1427932) for failures on tests/browser/chrome/test_media_playback.html r=backout on a CLOSED TREE
Backed out changeset fbae5269d99a (bug 1427932)
Backed out changeset 8b7cc135f1a5 (bug 1427932)
2018-01-10 11:08:57 +02:00
JW Wang d7381b7711 Bug 1427932. P2 - fix the calculation of |endTime|. r=jya
MozReview-Commit-ID: 2a8FxMdgM8e

--HG--
extra : rebase_source : a287b19c5c2d6d3c5a2fb454c14b390f60e63667
extra : source : 49211ab256d7742cf83b16e6a2fa6ed3d53f1b46
2018-01-04 11:10:19 +08:00
JW Wang 02d2fed70e Bug 1427932. P1 - replace NS_ASSERTION with MOZ_ASSERT to catch more bugs. r=jya
MozReview-Commit-ID: H5SNFz956nG

--HG--
extra : rebase_source : 8ee27dabc1cda0b4001464a1d78705aa2a306cd5
extra : source : ab0dab8a566c0090dd900a9fbcdd97cc7b622cbc
2018-01-04 11:09:54 +08:00
JW Wang 9aabe6d2e7 Bug 1429009. P2 - remove unnecessary AbstractThread::AutoEnter. r=bechen,gerald
It is not needed since we are already in the right context.

MozReview-Commit-ID: 6QXxLMQHavv

--HG--
extra : rebase_source : d7a80d3e3d6583bd1732a4048f40576603e83872
extra : source : d700cc52ce2a50a784601f7cff7f63eaff3efced
2018-01-09 17:49:53 +08:00
JW Wang 4d6d7238d7 Bug 1429009. P1 - notify 'DownloadProgressed' immediately to preserve the event order. r=bechen,gerald
We also need to call GetOwner()->UpdateReadyState() since mCanPlayThrough might
have changed.

MozReview-Commit-ID: C5djzu1sXqV

--HG--
extra : rebase_source : 1037cb7e1bf3a32fa60451e9a2a64ce63d06b8c2
extra : intermediate-source : 373c47f094dfb85ca2576d18a302d9ceb4e82ed5
extra : source : b710ff5026c18ac851be56ac9a369fe69b1d5b5d
2018-01-08 14:51:57 +08:00
JW Wang f80989079d Bug 1394702 - rewrite test_seek_out_of_range.html to be more robust. r=kaku
See comment 20 for the root cause.

We wait for both 'seeked' and 'ended' events to fire to make sure playback
has reached the end before calling play().

MozReview-Commit-ID: 55NEmqyDuSI

--HG--
extra : rebase_source : 3e1eda99e7fee247ea18c4fd4420f00338710b09
2018-01-09 17:35:07 +08:00
JW Wang 45984a084a Bug 1428951 - add a getter for MediaCacheStream::GetDebugInfo() to take the cache monitor on the main thread. r=bechen,gerald
MozReview-Commit-ID: 8qkZg0MJsGQ

--HG--
extra : rebase_source : 0ff2f6ebe8908bd5dade301f6c2c52e718a23c47
2018-01-09 10:29:10 +08:00
Jan-Ivar Bruaroey 8fedfc41e7 Bug 1403307 - Disable dom/media/test/test_mediarecorder_pause_resume_video.html on linux64 as well for frequent failures. r=bryce
MozReview-Commit-ID: D5KsUu6w6oG

--HG--
extra : rebase_source : 953e8a5088ea5e84b5ef65f58d856ada40e6e84a
2018-01-08 21:29:52 -05:00
Paul Adenot e3c5088847 Bug 1428392 - Remove AudioOutputObserver, and feed the reverse-stream directly to the AEC. r=pehrsons
MozReview-Commit-ID: EVpH5LUOZ6g

--HG--
extra : rebase_source : d172cd10dffee89ac48b9ec6b6435dcf0c0581d4
2018-01-05 18:10:23 +01:00
Paul Adenot 0b9f42aad6 Bug 1428392 - Remove a leftover VoE pointer in MediaEngineWebRTC.h r=pehrsons
MozReview-Commit-ID: B4SHftYPM7e

--HG--
extra : rebase_source : 1a785c8187918e20644c6162e650639b2f24d141
2018-01-05 17:20:00 +01:00
Paul Adenot 4ee119fb63 Bug 1428392 - Rename the MediaEngineWebRTCMicrophoneSource packetizer to indicate it's packetizing the input data (microphone). r=pehrsons
MozReview-Commit-ID: AcjAeXdN8iA

--HG--
extra : rebase_source : 8c44f92a73857ed2bc1b4a66e3e6b74dcb6d9d21
2018-01-05 17:19:22 +01:00
JW Wang 29bae87780 Bug 1428684 - reduce the chance of UAF when changing states of MDSM. r=kaku
SetState() will delete the current state object and UAF will happen if members
are accessed after this call. However, sometimes it is not obvious if SetState()
is called indirectly as we do in MaybeFinishSeek().

To make it less error-prone, we will keep the old state object alive for a bit
longer and set mMaster to null to catch potential UAF.

MozReview-Commit-ID: Aqxj92ETjti

--HG--
extra : rebase_source : 21b4a0b6df2b1723eed01b6c9d58b33b8dcc6405
2018-01-08 11:41:59 +08:00
JW Wang 7faefe8a6c Bug 1428682 - set MediaData::mOffset properly in OggDemuxer. r=jya
mOffset is important for MediaCache to evaluate the playback rate in bytes for
a live stream. Failing to set this field (initially 0) will cause MediaCache to
assume very low playback rate (in bytes) and not to download enough bytes for
decoder to consume without underflow.

This issue is manifested by bug 1427527 where a live ogg stream is played.

MozReview-Commit-ID: JiaXtpWCl09

--HG--
extra : rebase_source : af5928fd616058d4cbe1679e4ed2149641795b89
extra : intermediate-source : e31743f828f783845ad13fbbb23fb0b6af8ccb45
extra : source : 4ea2a67444f783724d9151be4f08878b50895a54
2018-01-08 10:21:59 +08:00
JW Wang 51a137168e Bug 1427699. P2 - rewrite InitAsCloneInternal() to mimic the case where data is downloaded from a channel. r=gerald
Note we add mClient->CacheClientSuspend() so the network state of the element
is changed to IDLE because we have no channel to fetch data initially.

MozReview-Commit-ID: DgJbMxvJBzH

--HG--
extra : rebase_source : 69a3ef35d4b5faaaa645fabe02246d49aebce22e
extra : source : 61ec40ce378a444ec0f74d474c28b6a9db3aa830
2018-01-05 16:31:39 +08:00
JW Wang 6c7aec249a Bug 1427699. P1 - allow element->DownloadSuspended() to be called when mChannel is null. r=gerald
This is required by P2 where we want to notify the 'suspend' event for a cloned
resource whose mChannel is initially null.

MozReview-Commit-ID: 3znDl2TqlqK

--HG--
extra : rebase_source : 71c3d6dc2052566b6bfb0879ce56b804312c5a37
extra : source : e6b7cb7937c80420ad2725c5a77143c7a071150f
2018-01-05 16:04:16 +08:00
Tiberius Oros 97791540b0 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-05 12:02:07 +02:00
Tiberius Oros 0a895028f7 Merge inbound to mozilla-central r=merge a=merge 2018-01-05 11:57:58 +02:00
JW Wang fb4b1616ab Bug 1428184 - copy mStreams before iterating the array. r=bechen,gerald
It is bad to modify the array while iterating it.

MozReview-Commit-ID: JbpoRmM7GqP

--HG--
extra : rebase_source : 92523a0741aa6014808b182954f653fce54161fd
2018-01-05 11:34:59 +08:00
Karl Tomlinson a848c67de0 bug 1418820 add diagnostic asserts to check for multiple concurrent drivers r=padenot
MozReview-Commit-ID: 5nRELgRkjQY

--HG--
extra : rebase_source : cc08e88c88e7997a2808aa6c1f59f8a70cd7f191
2017-12-21 20:08:21 +13:00
Karl Tomlinson 798ca9ae4e bug 1418820 add diagnostic asserts to check for running with incorrect lifecycle state r=padenot
MozReview-Commit-ID: HfwBfHoIsTu

--HG--
extra : rebase_source : 854ac34687bdcea2faf01d8006f8302ff2139923
2017-12-21 18:04:08 +13:00
JW Wang 5f75454142 Bug 1428242. P3 - use a non-reentrant monitor. r=bechen,gerald
MozReview-Commit-ID: GCXBHugTLJV

--HG--
extra : rebase_source : 099334dd48b7aa2817578f618d3ab12e1b01cf8f
2018-01-05 10:49:38 +08:00
JW Wang c5fd248bb7 Bug 1428242. P2 - MediaCache::ReadCacheFile() doesn't need to drop the cache monitor. r=bechen,gerald
Since we now never take the lock on the main thread, we can safely do file IO
while holding the lock without blocking the main thread.

This reverts the change of Bug 1354389 P1.

MozReview-Commit-ID: EhEwTjINQIT

--HG--
extra : rebase_source : 7eca1226d53a26025188e01837de645a1c879d7b
2018-01-05 10:48:14 +08:00
JW Wang 66c3598324 Bug 1428242. P1 - assert we always take the MediaCache monitor off the main thread. r=bechen,gerald
MozReview-Commit-ID: 6fxhzTOFaWx

--HG--
extra : rebase_source : ad507e823ed90356e6b1b7452460fa8462240021
extra : intermediate-source : 1dc9fa1ba116ef65fddc076bf5508701d85d788b
extra : source : d5a6e82b6f344c59814c30b950577fd67ee0b7e3
2017-12-20 15:28:52 +08:00
JW Wang f57d03fdf9 Bug 1427931. P2 - assert MediaCacheStream::Pin/Unpin is called off the main thread. r=bechen,gerald
MozReview-Commit-ID: 7tanbwvNfEh

--HG--
extra : rebase_source : 0c86905e8a4a04c82dee9eb07652ae497cb77818
2018-01-04 10:30:07 +08:00
JW Wang c79a2e5797 Bug 1427931. P1 - remove MediaDecoder::PinForSeek/UnpinForSeek. r=bechen,gerald
PinForSeek() is called only when playback reaches the end. In other words,
it is not called for most cases of seeking. It should be OK not to call it at
all during seeking.

MozReview-Commit-ID: 1xXX1321bO7

--HG--
extra : rebase_source : c362d0ac18f44862da9b0593ad85ebfc56416325
extra : intermediate-source : 0a70419f9ce639ac0784a0632db4598d6be511f8
extra : source : bfddad9b922386c91fcfa7657a7ac274991d15f4
2017-12-19 17:56:52 +08:00
Mark Banner 61630d27bc Bug 1427745 - Enable ESLint rule mozilla/use-services for dom/media. r=jib
MozReview-Commit-ID: 5UfN1TJH6D4

--HG--
extra : rebase_source : 7000040f2b07f846c5f8c08eb61ec366e0f38742
2018-01-03 15:11:03 +00:00
JW Wang 22c8322d40 Bug 1427934. P3 - check v.ended before calling callSeekToNextFrame(). r=kaku
v.ended is set to true before the 'ended' event is fired. Then we can simplify
the code by asserting seekToNextFrame() should never be rejected.

MozReview-Commit-ID: 5fB2QuboU0I

--HG--
extra : rebase_source : f9d423919e3fe6e34eaff1b4603398e66eaa594e
2018-01-04 11:25:51 +08:00
JW Wang a9eabe67be Bug 1427934. P2 - disable dormant. r=kaku
This makes tests run slightly faster.

MozReview-Commit-ID: 9gsrgEw4kx5

--HG--
extra : rebase_source : 7dc54aff9e7e3ba29ed7b25e2a5f67e13644e950
2018-01-04 11:19:44 +08:00
JW Wang 47233a1308 Bug 1427934. P1 - make logging less verbose. r=kaku
MozReview-Commit-ID: J1zxpmxLzy1

--HG--
extra : rebase_source : cc5d3268e179468b44000799b0e8889c4a03d080
2018-01-04 11:18:19 +08:00
JW Wang 3834402eca Bug 1427931. P2 - assert MediaCacheStream::Pin/Unpin is called off the main thread. r=bechen,gerald
MozReview-Commit-ID: 7tanbwvNfEh

--HG--
extra : rebase_source : cac6f3cf525884a280bca20684a8d9ba89716b7d
2018-01-04 10:30:07 +08:00
JW Wang d201fcefe3 Bug 1427931. P1 - remove MediaDecoder::PinForSeek/UnpinForSeek. r=bechen,gerald
PinForSeek() is called only when playback reaches the end. In other words,
it is not called for most cases of seeking. It should be OK not to call it at
all during seeking.

MozReview-Commit-ID: 1xXX1321bO7

--HG--
extra : rebase_source : df8ba3f59da2a337b456546af4b54abaddfe38a9
extra : intermediate-source : 0a70419f9ce639ac0784a0632db4598d6be511f8
extra : source : bfddad9b922386c91fcfa7657a7ac274991d15f4
2017-12-19 17:56:52 +08:00
Mark Banner 351ae38da6 Bug 1427745 - Enable ESLint rule mozilla/use-services for dom/media. r=jib
MozReview-Commit-ID: 5UfN1TJH6D4

--HG--
extra : rebase_source : 07597f865d3ccf5955f99501e3fedb6adbf47b72
2018-01-03 15:11:03 +00:00
JW Wang 37c6437dd1 Bug 1427934. P3 - check v.ended before calling callSeekToNextFrame(). r=kaku
v.ended is set to true before the 'ended' event is fired. Then we can simplify
the code by asserting seekToNextFrame() should never be rejected.

MozReview-Commit-ID: 5fB2QuboU0I

--HG--
extra : rebase_source : b8662773ec6bd0c9292666d1aa29a48cb860b22b
2018-01-04 11:25:51 +08:00
JW Wang 1c1feaca18 Bug 1427934. P2 - disable dormant. r=kaku
This makes tests run slightly faster.

MozReview-Commit-ID: 9gsrgEw4kx5

--HG--
extra : rebase_source : a73724f87160da421eb8ed6edb962fc527bf86d9
2018-01-04 11:19:44 +08:00
JW Wang 4931be7cbe Bug 1427934. P1 - make logging less verbose. r=kaku
MozReview-Commit-ID: J1zxpmxLzy1

--HG--
extra : rebase_source : f9efe61e16ff6be3fb16cef43e0b0b3b86b7efe3
2018-01-04 11:18:19 +08:00
JW Wang 31fbfceb45 Bug 1427667 - move the call to mMediaCache->ReleaseStream() from the destructor to CloseInternal(). r=bechen,gerald
So we won't need to take the cache monitor on the main thread.

MozReview-Commit-ID: FavZKcfaHn8

--HG--
extra : rebase_source : 8a0483a5db9db3d39dccf110ba363144f5e9b6dd
extra : intermediate-source : 214edc1ef96cc2f8b60a86ce068cb8b0593cb1f7
extra : source : ce13b43e884185a988205d0f3e860cf823458b37
2017-12-19 17:51:51 +08:00
JW Wang 240c0a0c9a Bug 1427666 - MediaCacheStream::InitAsCloneInternal() should notify the client that new data is available. r=bechen,gerald
We should call ChannelMediaResource::CacheClientNotifyDataReceived() no matter
new data is coming from the channel or copied from the original cache stream
so the decoder has a chance to compute 'canplaythrough' and buffer ranges.

MozReview-Commit-ID: I4cLow2VzJg

--HG--
extra : rebase_source : ede936c94a6d728cf6c596863e45aa45d2617d45
2018-01-03 10:33:11 +08:00
JW Wang bb6429d366 Bug 1426578. P5 - offload Init() to another thread. r=bechen,gerald
MozReview-Commit-ID: Fv7eq39GNsk

--HG--
extra : rebase_source : 483cd70c65a4f724b40aaa11eece60b6a2a85e25
extra : source : db2632bf1828721b94bda877bf23bc59d189206e
2017-12-19 17:38:40 +08:00
JW Wang ea7483e4ce Bug 1426578. P4 - offload InitAsClone() to another thread. r=bechen,gerald
MozReview-Commit-ID: H8bQRmkJ8jU

--HG--
extra : rebase_source : a6fd3ec4d48974a36c0eec24503d10258ed5f5d4
extra : source : 2ffac43de24706551d3e183072d4e53c137ecb5f
2017-12-19 17:32:55 +08:00