Commit Graph

5780 Commits

Author SHA1 Message Date
Gian-Carlo Pascutto
0cc14f2a8b Bug 1249313 - Don't shut down the entire Cameras IPC if a single source is shut down. r=jesup 2016-02-23 15:20:26 +01:00
Jan-Ivar Bruaroey
64ae402461 Bug 1250540 - test media.getusermedia.screensharing.allowed_domains r=jesup
MozReview-Commit-ID: 6qdzXHCi5Mk

--HG--
extra : rebase_source : 54bd079bf66ed3838ec83cb6b555287dc7192488
2016-02-23 16:07:35 -05:00
Jan-Ivar Bruaroey
45390b2d1d Bug 1250540 - have media.navigator.permission.disabled no longer bypass media.getusermedia.screensharing.allowed_domains. r=jesup
MozReview-Commit-ID: JTxeco3WGVr

--HG--
extra : rebase_source : 8a71af6471363f21210af6be8ed606c519985f8e
2016-02-23 15:54:00 -05:00
Jan-Ivar Bruaroey
f784fde760 Bug 1250540 - fix string-parsing regression that made screen share whitelisting stop working. r=jesup
MozReview-Commit-ID: AKux0nBVBEF

--HG--
extra : rebase_source : 2c5a889c71cd6b69be525fffb1faf23b10ebaa30
2016-02-23 11:30:49 -05:00
Louis Christie
b3029a86f3 Bug 1250497: Initalised Values used in WaveDemuxer.cpp. r=cpearce 2016-02-24 15:42:33 +13:00
Jan-Ivar Bruaroey
1bed533d68 Bug 1244913 - Add test_peerConnection_scaleResolution.html r=bwc,jesup
MozReview-Commit-ID: 8jeVEoL5JMR

--HG--
extra : rebase_source : 21b3fa0bf24a003f14112130d021fe5043ea3f14
2016-02-18 01:18:13 -05:00
Jan-Ivar Bruaroey
ceba79f2b0 Bug 1244913 - resolution-based bitrates for each simulcast layer, scaleResolutionDownBy, and working maxBitrate in unicast. r=bwc,jesup
MozReview-Commit-ID: 347J1ElsOEx

--HG--
extra : rebase_source : 33eff52e6082815d732de49a2bac584cfc9c87c4
2016-02-12 19:56:56 -05:00
Bogdan Postelnicu
5d80c062f6 Bug 1250083 - make sure value attributed to usPerDataChunk is floating point value. r=cpearce
MozReview-Commit-ID: FqjX4xj0M2l

--HG--
extra : rebase_source : bfc82909e2ad8be76234ded426ff21d53feea85d
2016-02-24 11:18:14 +02:00
Chris Pearce
d681b4c0f7 Bug 1250745 - Share GMP processes when doing unencrypted decoding. r=jwwang
But make sure that there's no way a GMP can track and report what a user watches using unencrypted decoding.


MozReview-Commit-ID: DljjYjcziRS

--HG--
extra : rebase_source : 1c4204ff69df0ed03015c069736831e5f8b35a29
2016-02-24 14:38:56 +13:00
Chris Pearce
173de1feeb Bug 1249424 - Remove use of nsAutoArrayPtr from librlz. r=gerald
MozReview-Commit-ID: 2eXvcgbSQM0

--HG--
extra : rebase_source : 0397373e89a73972512d6d8178105c5ce57100a6
2016-02-24 10:53:10 +13:00
Chris Pearce
1db0b39f51 Bug 1247763 - Remove info file parsing from GMP child process. r=gerald
The only reason we need to parse the info file in the GMP child process
is because we need to read the "Libs:" line so that the child process
can preload DLLs on Windows. We already parse the GMP info file in the
parent process, so we can remove the need to parse it again if we parse
the "Libs" field in the parent, and pass that through to the child.
2016-02-24 07:21:47 +13:00
Gian-Carlo Pascutto
3688a8295e Bug 1249365 - Store Loops permission to use the camera so we can check later. r=jesup 2016-02-23 12:09:44 +01:00
JW Wang
1a90a30802 Bug 1248229. Part 2 - GC might happen in between OutputStreamManager::Disconnect() and OutputStreamManager::Connect(). We need to check if the stream is already destroyed before trying to connect it. r=roc.
MozReview-Commit-ID: EL3ip1yjNaz
2016-02-22 11:04:41 +08:00
JW Wang
1a5b55ef36 Bug 1248229. Part 1 - add test case to test if playback can work correctly after GC. r=roc.
MozReview-Commit-ID: 5TqU74QPkYz
2016-02-22 11:04:41 +08:00
Phil Ringnalda
06d3088237 Back out 71da07ec8ce3 (bug 1242682) for exposing an Android test with a bad dependency and being a bad time to just shut off all dom/media/ tests
CLOSED TREE
2016-02-21 13:18:26 -08:00
Joel Maher
f1c675a803 Bug 1242682 - Separate dom/media into its own subsuite. r=armenzg
MozReview-Commit-ID: 55QtAPlIltM

--HG--
extra : rebase_source : c3770e53da3b42bc1b6acfe6d891519d1a258d9e
2016-02-04 13:35:06 -08:00
Martin Thomson
5c0f1d860f Bug 1209744 - Implement canTrickleIceCandidates attribute, r=bwc,khuey
MozReview-Commit-ID: 838B1zSIGLj

--HG--
extra : rebase_source : ac6e5ffbc098d99964a8fec1d20f5495943d3265
2016-02-20 16:48:20 -08:00
Alastor Wu
03b52325bc Bug 1242774 - add crash test. r=jwwang.
MozReview-Commit-ID: EBRigaPn5Du

--HG--
extra : rebase_source : 87bb1caef2ea5cc43449b5f864475fa9ca8c5c58
2016-02-14 19:06:00 +08:00
Sambuddha Basu
79b3096449 Bug 952564 - Disallow empty lists in moz.build variables r=gps
--HG--
extra : rebase_source : 9a70b6a3150fe898a724a43815dc923bb0d70b89
extra : amend_source : 7aa800ef61427117e5dc461443f82ebd403d8164
2016-02-18 17:26:09 -08:00
Jean-Yves Avenard
3206518350 Bug 1248909: [MSE] P2. Simplify diagnostic. r=gerald
Also, an assert could have been incorrectly triggered, if eviction occurred on a source buffer while data was also being appended to it.

MozReview-Commit-ID: 6gVHZdbL07B
2016-02-19 12:19:08 +11:00
Wes Kocher
d32f836f75 Backed out changeset 15485839d79f (bug 1248909) for frequent wpt crashes during mediasource-append-buffer.html a=backout
--HG--
extra : commitid : 8D3aarBCm8E
2016-02-18 14:05:00 -08:00
Byron Campen [:bwc]
87730e478f Bug 1241153: Stop blocking addTrack on GMP init, and update codecs on existing tracks when GMP init finishes. r=jesup
MozReview-Commit-ID: GqUBh0O5Dpk

--HG--
extra : rebase_source : 5b38531baf499b91c57ecc3cb6ddf9c10c8d5f15
2016-02-12 14:21:33 -06:00
Randell Jesup
267abe3945 Bug 1242724: add an export of runnable_utils.h unless/until it gets moved to xpcom/mfbt r=glandium
MozReview-Commit-ID: C577TmkWaWE
2016-02-18 11:44:55 -05:00
Gian-Carlo Pascutto
369929445b Bug 1247236. r=jesup 2016-02-18 17:25:22 +01:00
Kan-Ru Chen
31705a1450 Bug 1249244 - Add missing argument to MediaEngineGonkVideoSource::Allocate. r=cyu
MozReview-Commit-ID: 5va5cHFqlja

--HG--
extra : rebase_source : ca16b27f315b06468c93dcfd25ad9fc739dc1021
2016-02-18 18:52:37 +08:00
Louis Christie
ac975a3e11 Bug 851530: Part 2 - Added test cases for uLaw and aLaw wave files. r=jya
--HG--
extra : rebase_source : d3875f16601d3eab254fdaa144dc84a5db0384ac
2016-02-12 14:45:47 +13:00
Louis Christie
6545052865 Bug 851530: Part 1 - Added support for decoding uLaw and aLaw enconded wave files. r=jya
--HG--
extra : rebase_source : f9179aa998afb3bf6b7c3a2ef2b841aded6c1153
2016-02-12 14:45:28 +13:00
Jean-Yves Avenard
f04a1e0f1c Bug 1248909: [MSE] P2. Simplify diagnostic. r=gerald
Also, an assert could have been incorrectly triggered, if eviction occurred on a source buffer while data was also being appended to it.

MozReview-Commit-ID: 6gVHZdbL07B
2016-02-18 19:21:05 +11:00
JW Wang
c08fd0c5f3 Bug 1248513 - Fix static analysis errors in non-unified build for AudioStream.cpp. r=gerald.
MozReview-Commit-ID: 77AC9c2TKqb
2016-02-18 11:34:04 +08:00
Matt Woodrow
00f5fe68bd Bug 1248496 - Enable D3D11 DXVA. r=ajones 2016-02-18 14:32:59 +13:00
Jean-Yves Avenard
f63fc4693e Bug 1248909: [MSE] Use MOZ_DIAGNOSTIC_ASSERT. r=gerald
MozReview-Commit-ID: 5HPdLKopGGa
2016-02-18 11:22:04 +11:00
Randell Jesup
674904d269 Bug 1237816: count open input sources for MediaStreams to release inputs on Destroy() r=roc,padenot
MozReview-Commit-ID: LkCBqPXAWBP
2016-02-03 21:12:51 -05:00
Randell Jesup
325a83f9f0 Bug 1245216: Avoid reallocating and leaking AudioPacketizer output buffer r=padenot
MozReview-Commit-ID: JAeodWyowex
2016-02-17 13:19:02 -05:00
Randell Jesup
53115cc247 Bug 1245216: white-list the fake 440Hz audio source used in automation for getUserMedia enumeration r=padenot
MozReview-Commit-ID: Gor7DsJlI2r
2016-02-17 13:19:02 -05:00
Randell Jesup
85f3c6a92d Bug 1245216: Fix getUserMedia input in full_duplex mode coming from the wrong place r=padenot
Also cleanup of an leftover overrridden interface, and re-add a line lost in merges

MozReview-Commit-ID: 7sjtbbtq1RG
2016-02-17 13:19:02 -05:00
Randell Jesup
0a6b21aecf Bug 1245216: plumb preferred sample rate from full_duplex cubeb through NotifyInput/Output r=padenot
MozReview-Commit-ID: 4F9LwSIZ5OA
2016-02-17 13:19:01 -05:00
Gian-Carlo Pascutto
546b46fa4c Bug 1177242 - Verify whether sandboxed Content process has permissions to access the camera/mic. r=jesup 2016-02-17 18:57:26 +01:00
Eugen Sawin
bae45730cf Bug 1232336 - [1.1] Enabled autoplay in test to enforce metadata load on Android. r=snorp 2016-02-17 14:57:32 +01:00
Carsten "Tomcat" Book
9b25bcdc89 Backed out changeset 8ac1b6ca916a (bug 1242774) for crashtest failures
--HG--
extra : rebase_source : fe867d2e4b17c74f084fe5ffab2bb17445e42999
2016-02-17 12:13:31 +01:00
Alastor Wu
aafd974c93 Bug 1242774 - add crash test. r=jwwang.
--HG--
extra : rebase_source : c59a6faab1a63f67cdc891bc362e6737b1d58d5d
2016-02-14 19:06:00 +01:00
Jean-Yves Avenard
4de572ea7a Revert "Bug 1248570: Allow WAV into media element. r=lchristie"
This reverts commit b3f7abd15a
2016-02-17 16:09:51 +11:00
Jean-Yves Avenard
9df5f82b77 Bug 1248570: Allow WAV into media element. r=lchristie
MozReview-Commit-ID: AKIQq9EyCC6
2016-02-17 15:47:43 +11:00
JW Wang
d9a7eb2325 Bug 1248543 - release decoder resources when finishing tests to avoid OOM and failing to open cubeb streams. r=kinetik.
MozReview-Commit-ID: 1LmRNzVFYX9
2016-02-17 10:47:03 +08:00
Louis Christie
7afcbd8099 Bug 1231793: Part 8 - Added checks for various metadata errors. r=jya 2016-02-17 09:57:52 +11:00
Gerald Squelart
cb8bb9067d Bug 1248308 - Fix dom/media non-unified build errors - r=jya 2016-02-17 08:55:33 +11:00
Louis Christie
ccbdff988a Bug 1231793: Part 7 - Fixed various tests. r=jya 2016-02-17 00:28:50 +11:00
Louis Christie
38e2de5ca1 Bug 1231793: Part 6 - Enabled the new Wave Data Decoder in DecoderTraits. r=jya
MozReview-Commit-ID: EdW4JJM3nO6
2016-02-17 00:28:50 +11:00
Louis Christie
1242af5735 Bug 1231793: Part 5 - Added Wave Data Demuxer and Decoder. r=jya 2016-02-17 00:28:49 +11:00
Louis Christie
73e5a18a30 Bug 1231793: Part 4 - Added checks for Wave type in AndroidDecoderModule. r=jya 2016-02-17 00:28:49 +11:00
Louis Christie
e2039d5220 Bug 1231793: Part 3 - Fixed reading of Metadata tags. r=jya 2016-02-17 00:28:49 +11:00
Louis Christie
4952a31ce0 Bug 1231793: Part 2 - Added conversions to AudioSampleFormat.h. r=jya 2016-02-17 00:28:48 +11:00
Bogdan Postelnicu
4fd1a8228f Bug 1247933 - do not perform null check on aClient since we know for sure it's a valid pointert. r=sotaro
MozReview-Commit-ID: 5AiIprIVNAS

--HG--
extra : rebase_source : 22c05cf923412e96728171e37167a9f3f66d2e95
2016-02-15 10:33:46 +02:00
Carsten "Tomcat" Book
588ec7de76 Backed out changeset decfe1d8c927 (bug 1242774) for causing leaks 2016-02-16 08:34:14 +01:00
Aidin Gharibnavaz
6863090c8a Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn

--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
Alastor Wu
491bfa834c Bug 1242774 - add crash test. r=jwwang. 2016-02-14 19:24:00 +01:00
Syd Polk
94580e525f Bug 1247758 - README needs to updated with information on running with ./mach - r=maja_zf,SingingTree
MozReview-Commit-ID: K30pgZQMQYo

--HG--
extra : rebase_source : 36423cc519d92bbf59ec715c15da33406a80c040
2016-02-15 13:31:02 -06:00
JW Wang
8305f2e98d Bug 1248314. part 2 - move track initialization code into the constructor of DecodedStreamData. r=roc.
MozReview-Commit-ID: 2aQ7cXxRDTE
2016-02-15 11:41:31 +08:00
JW Wang
fb95de6307 Bug 1248314. Part 1 - Since OutputStreamManager::Connect/Disconnect is tightly coupled with the constructor/destructor of DecodedStreamData, it would improve cohesion to let DecodedStreamData manage an OutputStreamManager and know when to call OutputStreamManager::Connect/Disconnect. r=roc.
MozReview-Commit-ID: Gg6WxMzAXSp
2016-02-15 11:39:13 +08:00
Jean-Yves Avenard
b11ed78317 Bug 1247041: [ffmpeg] Request YUVJ420P format explicitly. r=kentuckyfriedtakahe
Requesting YUV420P causes crashes with some version of FFmpeg.

MozReview-Commit-ID: I69jNZ64Le5
2016-02-15 23:02:24 +11:00
Jean-Yves Avenard
c5c63d35fc Bug 1245463: [MSE] P5. Remove no longer working Dump() commands. r=gerald
MozReview-Commit-ID: 71hgJ63ksPU
2016-02-12 23:45:48 +11:00
Jean-Yves Avenard
96e96d9ebc Bug 1245463: [MSE] P4. Remove dead code. r=gerald
MozReview-Commit-ID: Elnm0WPuqHC
2016-02-12 23:45:47 +11:00
Jean-Yves Avenard
30db7c749e Bug 1245463: [MSE] P3. When abort() is called, wait until the current appendBuffer completes. r=gerald
The W3C spec indicates that while everything in MSE is asynchronous, the abort() command is to interrupt the current segment parser loop and have the reset parser loop synchronously completes the frames present in the input buffer.
This causes a fundamental issue that abort() will never result in a deterministic outcome as the segment parser loop may be in different condition.

We used to really attempt to abort the current operation, however there could have been a race in the order in which tasks were queued. As such, we now simply wait for the current appendBuffer to complete.

This also simplifies the code greatly, as we don't need to worry about pending concurrent appendBuffer.

The actually happens to be similar to the Chromium behavior.

Similar to bug 1239983, we strongly assert should a segment parser loop be running when it must have completed.

MozReview-Commit-ID: 9772PLQEozf
2016-02-12 23:45:47 +11:00
Jean-Yves Avenard
9d45d60388 Bug 1245463: [MSE] P2. Remove MediaSource's duration mirror. r=gerald
It served no purpose other than implementing the MSE spec by the letter. The spirit is preserved.
This allows to disable tail dispatching on the MediaSourceDemuxer's TaskQueue which prevents us from performing synchronous operation on the main thread.

MozReview-Commit-ID: G7aqfvGsf1e
2016-02-12 23:45:46 +11:00
Jean-Yves Avenard
aceca098dd Bug 1245463: [MSE] P1. Do not attempt to retrieve the buffered range if the mediasource is in closed state. r=gerald
The changes that follow may cause the active sourcebuffer list to be modified; which will trigger an assertion if the mediasource object is closed.

MozReview-Commit-ID: 8A1CMKAUyTq
2016-02-12 23:45:46 +11:00
Phil Ringnalda
6111439998 Back out 6 changesets (bug 1245463) for !mAppendRunning (Append is running) assertion failures
CLOSED TREE

Backed out changeset 75d96e417aaf (bug 1245463)
Backed out changeset dca0577d741c (bug 1245463)
Backed out changeset 17ffbe7ca24e (bug 1245463)
Backed out changeset 83a2de2fcf02 (bug 1245463)
Backed out changeset e8bb35ea72e4 (bug 1245463)
Backed out changeset 48364b868055 (bug 1245463)
2016-02-11 23:39:36 -08:00
Phil Ringnalda
7fefcf629a Back out changeset 561d4d620aa3 (bug 1242774) for destabilizing Linux32 crashtests 2016-02-11 22:41:58 -08:00
Jean-Yves Avenard
656801b3a7 Bug 1245463: [MSE] P6. Fix incorrect assertions. r=me
mAppendRunning is set prior the append task being queued; so it is possible that the segment parser loop hasn't yet been started, yet mAppendRunning is true.

Separate this diagnostic with a new flag ON A CLOSED TREE.

MozReview-Commit-ID: GgTyyltKOJr
2016-02-12 15:18:43 +11:00
Jean-Yves Avenard
184fb6b1d4 Bug 1245463: [MSE] P5. Remove dead code. r=gerald
MozReview-Commit-ID: Elnm0WPuqHC
2016-02-12 15:18:41 +11:00
Jean-Yves Avenard
a6a8d0565d Bug 1245463: [MSE] P4. Remove no longer working Dump() commands. r=gerald
MozReview-Commit-ID: 71hgJ63ksPU
2016-02-12 10:30:16 +11:00
Jean-Yves Avenard
dda61422b8 Bug 1245463: [MSE] P3. When abort() is called, wait until the current appendBuffer completes. r=gerald
The W3C spec indicates that while everything in MSE is asynchronous, the abort() command is to interrupt the current segment parser loop and have the reset parser loop synchronously completes the frames present in the input buffer.
This causes a fundamental issue that abort() will never result in a deterministic outcome as the segment parser loop may be in different condition.

We used to really attempt to abort the current operation, however there could have been a race in the order in which tasks were queued. As such, we now simply wait for the current appendBuffer to complete.

This also simplifies the code greatly, as we don't need to worry about pending concurrent appendBuffer.

The actually happens to be similar to the Chromium behavior.

Similar to bug 1239983, we strongly assert should a segment parser loop be running when it must have completed.

MozReview-Commit-ID: 9772PLQEozf
2016-02-12 10:30:09 +11:00
Jean-Yves Avenard
e65199f63d Bug 1245463: [MSE] P2. Remove MediaSource's duration mirror. r=gerald
It served no purpose other than implementing the MSE spec by the letter. The spirit is preserved.
This allows to disable tail dispatching on the MediaSourceDemuxer's TaskQueue which prevents us from performing synchronous operation on the main thread.

MozReview-Commit-ID: G7aqfvGsf1e
2016-02-12 10:29:59 +11:00
Jean-Yves Avenard
5a49dc9392 Bug 1245463: [MSE] P1. Do not attempt to retrieve the buffered range if the mediasource is in closed state. r=gerald
The changes that follow may cause the active sourcebuffer list to be modified; which will trigger an assertion if the mediasource object is closed.

MozReview-Commit-ID: 8A1CMKAUyTq
2016-02-12 10:27:33 +11:00
Chris Pearce
ba52b24d0b Bug 1247556 - Use GMPInfoFileParser in GMPParent::ReadGMPMetaData(). r=gerald 2016-02-12 10:59:51 +13:00
Nathan Froyd
778b4efbe3 Bug 1247395 - use UniquePtr for control messages in MediaStreamGraphImpl; r=roc 2016-01-20 16:14:33 -05:00
Andreas Pehrson
68c86a9506 Bug 957691: Ensure that MediaManager ends all tracks before finishing its source stream r=jib,jesup,pehrsons
This puts all the logic in GetUserMediaCallbackMediaStreamListener and none in
MediaOperationTask to make it simpler to reason about what's happening.

When we want to stop a track, the gUMCallbackListener will send a
MEDIA_STOP_TRACK if other tracks will still be live.
If it was the last live track, the gUMCallbackListener will send a MEDIA_STOP
instead. The MEDIA_STOP makes sure the passed in devices (we pass in all) are
stopped before finishing the stream.

MozReview-Commit-ID: E43Iqw491tB
2016-02-05 13:20:20 +01:00
Gian-Carlo Pascutto
51f2881f05 Bug 1230768. r=jesup 2016-02-10 17:15:28 +01:00
Aidin Gharibnavaz
686438c658 Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Paul Kerr [:pkerr]
d7144f8634 Bug 1219339 - Part2: Ensure close of webrtc trace file during shutdown. r=rjesup 2016-02-10 13:10:46 -08:00
Syd Polk
afcf5761f9 Bug 1243546 - Add mach command for external-media-tests - r=gps
MozReview-Commit-ID: 5BcunutbebG

--HG--
extra : rebase_source : cce6138811232d723f77c6e069f06c90cc961351
extra : amend_source : e3632b74752d69cd341d8097c8c6150f18e61847
2016-02-10 11:48:25 -06:00
Syd Polk
5d66a45ae4 Bug 1243807 - Update requirements in external-media-tests for CPOW errors. r=maja_zf
MozReview-Commit-ID: 9pG0Rhp8tGa

--HG--
extra : rebase_source : d560447c5e793b80824bb7c6376dde620b9f32ef
2016-02-09 14:45:14 -06:00
Eitan Isaacson
2b242414b8 Bug 1237176 - Notify synth start if we get a finished event without a blocking-changed event. r=roc
MozReview-Commit-ID: BJSQOiyXmRh
2016-02-10 11:20:58 -08:00
Eugen Sawin
e4c90cb56c Bug 1244292 - [1.2] Release decoder on init failure. r=snorp 2016-02-10 15:07:56 +01:00
Makoto Kato
30d814fec1 Bug 1230428 - Add crashtest for WebSpeech synthesis. r=eeejay 2016-02-10 20:57:41 +09:00
Carsten "Tomcat" Book
f854f0417e Backed out changeset 5b37030dbfe3 (bug 1245463) for Android m-9 crashes 2016-02-10 11:20:31 +01:00
Carsten "Tomcat" Book
dc41ea5c25 Backed out changeset a9ccf315f1f2 (bug 1245463) 2016-02-10 11:20:16 +01:00
Carsten "Tomcat" Book
4626394d1c Backed out changeset 2376ec200aec (bug 1245463) 2016-02-10 11:20:15 +01:00
Carsten "Tomcat" Book
45b0b8a19f Backed out changeset 2affd4506079 (bug 1245463) 2016-02-10 11:20:13 +01:00
Carsten "Tomcat" Book
9f354ccec0 Backed out changeset 22641351f11f (bug 1245463) 2016-02-10 11:20:12 +01:00
Carsten "Tomcat" Book
6244cfb10e Backed out changeset 200da85932e9 (bug 1230862) for valgrind perma failures 2016-02-10 11:04:50 +01:00
Jean-Yves Avenard
7b7a27dd0f Bug 1245463: [MSE] P5. Remove no longer working Dump() commands. r=gerald
MozReview-Commit-ID: 71hgJ63ksPU
2016-02-10 20:07:29 +11:00
Jean-Yves Avenard
95de6fa2f8 Bug 1245463: [MSE] P4. Remove dead code. r=gerald
MozReview-Commit-ID: Elnm0WPuqHC
2016-02-10 20:07:28 +11:00
Jean-Yves Avenard
43fa8f611e Bug 1245463: [MSE] P3. Diags to ensure the Segment Parser Loop isn't running. r=gerald
This is similar to bug 1239983, we strongly assert should a segment parser loop be running when it must have completed.

MozReview-Commit-ID: CXqGoq9Opq0
2016-02-10 20:07:28 +11:00
Jean-Yves Avenard
018bf90ad7 Bug 1245463: [MSE] P2. When abort() is called, wait until the current appendBuffer completes. r=gerald
The W3C spec indicates that while everything in MSE is asynchronous, the abort() command is to interrupt the current segment parser loop and have the reset parser loop synchronously completes the frames present in the input buffer.
This causes a fundamental issue that abort() will never result in a deterministic outcome as the segment parser loop may be in different condition.

We used to really attempt to abort the current operation, however there could have been a race in the order in which tasks were queued. As such, we now simply wait for the current appendBuffer to complete.

This also simplifies the code greatly, as we don't need to worry about pending concurrent appendBuffer.

The actually happens to be similar to the Chromium behavior.

MozReview-Commit-ID: CHppUOGM1mk
2016-02-10 20:07:27 +11:00
Jean-Yves Avenard
f3b37cac73 Bug 1245463: [MSE] P1. Do not attempt to retrieve the buffered range if the mediasource is in closed state. r=gerald
The changes that follow may cause the active sourcebuffer list to be modified; which will trigger an assertion if the mediasource object is closed.

MozReview-Commit-ID: 8A1CMKAUyTq
2016-02-10 20:07:27 +11:00
Gerald Squelart
f730652298 Bug 1247175 - Accept libavcodec 57.100+ - r=jya 2016-02-10 18:55:33 +11:00
Julien Pagès
cb348f4346 Bug 1230862 - Remove mozhttpd. r=wlach
--HG--
extra : commitid : HRDp24nhYo8
extra : rebase_source : 76443fa9938e488fcd06af7ba0676d491c9da36e
2016-02-09 03:26:43 +01:00
Bryce Van Dyk
61408b539f Bug 1246842 - Rework previous commit to not used deprecated arguments.callee r=cpearce
MozReview-Commit-ID: DFWNOGN0FyY

--HG--
extra : transplant_source : %1E%0D%0E%F7%EB%AE%10%40%D6%C2%3F%03%EC%16%98%91Z%60%D8%20
2016-02-09 20:42:56 +13:00
Bryce Van Dyk
ec7d44ede3 Bug 1246842 - Correct once function to remove correct event listener r=cpearce
The once function should add and then remove an event listener after it is
invoked, but it appears to remove another event listener instead. This commit
adjusts that behaviour. Note that the dom/media/mediasource/test/mediasource.js
file has the same pattern and has been updated. This commit reflects using the
same changes to remedy the once function here.

MozReview-Commit-ID: DQ4bfxTQfjN

--HG--
extra : transplant_source : 7%8E%19%DB74e%23%1511%1C%89%7D5%98%DE%12%BA%A2
2016-02-09 17:32:13 +13:00
Chris Pearce
c098d0e875 Bug 1246835 - Reduce #ifdefs pain in GMPChild.cpp. r=gerald 2016-02-10 15:48:45 +13:00
Phil Ringnalda
77c63240e3 Back out 0a0582597885 (bug 1243546) for Mac "global name 'args' is not defined" bustage
--HG--
extra : rebase_source : 5afaa6c8d1f59e0afdc6f0cd495e55336f976866
2016-02-09 18:44:35 -08:00
Syd Polk
922d92002d Bug 1243546 - Add mach command for external-media-tests - r=gps
--HG--
extra : rebase_source : 04045035246948854cc91284dfad430cec1373fb
2016-02-09 18:10:19 -06:00
Jean-Yves Avenard
c04fc8bec6 Bug 1237160: Do not count frames not composited as dropped. r=cpearce
This is a partial reversal of bug 1230338. We can't distinguish frames that are never composited because the media element is hidden from the frames genuinely dropped due to machine slowness. So until we can distinguish them, let's not report them as dropped.

MozReview-Commit-ID: ERV8Luaxp3F
2016-02-10 11:05:09 +11:00
Boris Zbarsky
3366af6c39 Bug 1243001 part 5. Get rid of most of the dom::Promise methods when SPIDERMONKEY_PROMISE is defined, and reimplement the rest in terms of SpiderMonkey Promise. r=peterv
This is the bulk of the new dom::Promise implementation.  It's using the APIs
that bug 911216 part 1 adds.
2016-02-09 17:40:31 -05:00
Bob Owen
61758e667a Bug 1236680 Part 3: Add #ifs to include to fix bustage. r=me 2016-02-09 15:35:44 +00:00
Bob Owen
fdc9ac4e02 Bug 1236680 Part 2: Resolve GMP path for moved Users folder. r=cpearce 2016-02-09 15:22:43 +00:00
Alastor Wu
ff6e26aa36 Bug 1242774 - add crash test. r=jwwang. 2016-02-05 01:40:00 +01:00
Alastor Wu
28154f1f42 Bug 1242774 - only resolve promise when exist. r=jwwang. 2016-02-05 01:39:00 +01:00
Carsten "Tomcat" Book
c72c544acd Backed out changeset c0b8f05a48d5 (bug 1246835) for bustage on a CLOSED TREE 2016-02-09 08:47:38 +01:00
Chris Pearce
d5820bea46 Bug 1246835 - Reduce #ifdefs pain in GMPChild.cpp. r=gerald 2016-02-09 14:44:16 +13:00
Chris Pearce
66f7fa299a Bug 1246763 - Refactor GMP info file parsing into helper class. r=gerald 2016-02-09 14:37:22 +13:00
Jean-Yves Avenard
5b93305cdc Bug 1229742: P2. Don't reject data promise if new data is pending. r=gerald
MozReview-Commit-ID: LaQeRoffA6B
2016-02-09 11:40:29 +11:00
Jean-Yves Avenard
291989df71 Bug 1229742: P1. Only clear EOS flag if we have new data. r=gerald
MozReview-Commit-ID: ttmWsAIPxQ
2016-02-09 11:40:28 +11:00
Dan Glastonbury
935f02a4f5 Bug 1169212 - Part 3: Fix ADTSLOGV macro definitions. r=jya 2016-02-09 12:48:20 +13:00
Myk Melez
a6aff185d2 Bug 1238576 - disable mozApps API on desktop/Android; r=ehsan,ochameau,bz,mcmanus,jmaher,marco 2016-02-08 11:24:22 -08:00
Carsten "Tomcat" Book
5b358688b7 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
69cf7e035f Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Jean-Yves Avenard
8fa85e0c6e Bug 1246358: [MSE] Take pre-roll time into consideration when seeking. r=gerald 2016-02-08 17:36:17 +11:00
Jean-Yves Avenard
a1d2f88108 Bug 1246521: [MSE] P3. Only error during Prepare Append algorithm if the media element is in error. r=gerald 2016-02-08 16:38:45 +11:00
Jean-Yves Avenard
53c49526d6 Bug 1246521: P2. Add MediaDecoder::OwnerHasError method. r=gerald 2016-02-08 16:38:26 +11:00
Jean-Yves Avenard
722e4fee21 Bug 1246521: P1. Add MediaDecoderOwner::HasError method. r=gerald 2016-02-08 16:31:42 +11:00
Phil Ringnalda
a0117e0b74 Back out c3ac85cea6a3 (bug 1246358) for failures in test_invalid_reject_play.html
CLOSED TREE
2016-02-07 19:29:07 -08:00
Jean-Yves Avenard
435868949a Bug 1246358: [opus] Don't error if we fail to decode the last frame. r=TD-Linux 2016-02-08 12:22:07 +11:00
Phil Ringnalda
4600f4bd1f Bug 1228605 - Disable test_mediarecorder_avoid_recursion.html on Windows opt for frequent timeouts 2016-02-06 11:33:38 -08:00
Nils Ohlmeier [:drno]
fa121cafb8 Bug 1246011: fixed PT comparising for PT's without rtpmap. r=jesup
--HG--
rename : dom/media/tests/mochitest/test_peerConnection_basicAudioPcmaPcmuOnly.html => dom/media/tests/mochitest/test_peerConnection_basicAudioDynamicPtMissingRtpmap.html
extra : commitid : TUmPCn4bqt
2016-02-05 11:58:05 -08:00
Jean-Yves Avenard
944fc9f31d Bug 1244639: P2. Don't clamp audio time to seek time if there's no video track. r=cpearce
This remove the need for working around the MP3 decoder returning decoded frames in the future.
2016-02-05 14:53:58 +11:00
Jean-Yves Avenard
6194838634 Bug 1244639: P1. Don't assume MP3 decoding always starts at 0. r=cpearce
This remove the MP3 workaround for the mac decoder that was added in bug 1194080.
2016-02-05 14:53:58 +11:00
JW Wang
4a525dc7dd Bug 1245542 - I suspect AudioData::mAudioData/mFrames are poisoned when sample format doesn't match the metadata. Let's ignore these samples to see if crash volume can be reduced. r=kinetik. 2016-02-05 10:19:12 +08:00
Paul Adenot
6190ea3fb0 Bug 1241499 - Initialize the HRTF database lazily. r=karlt
--HG--
extra : commitid : CR6URDULVd6
2016-01-21 16:15:57 +01:00
Chris Pearce
ab9dc9ea26 Bug 1243878 - Null check CDMProxy::mKeys in CDMProxy::OnExpirationChange() before use. r=jwwang
All the methods in CDMProxy except CDMProxy::OnExpirationChange() that use
mKeys null check mKeys before using it because it can go away during shutdown
before the IPC message to call the methods have had a chance to run.

We should do the null check in CDMProxy::OnExpirationChange() too.
2016-01-29 10:23:45 +13:00
Jean-Yves Avenard
f501a23d19 Bug 1181981: [MSE] Force TrackId for MSE tracks. r=gerald
YouTube sets the track ID at 1 for both audio and video tracks. Attempting to use mozCaptureStream would cause an assert as it always expect tracks to have a different track Id.
2016-02-04 11:07:19 +11:00
Gerald Squelart
af8cc983cf Bug 1143096 - Init all WebMBufferedParser members - r=kinetik
Initialize all WebMBufferedParser members, mainly to remove compiler warnings.
'mClusterTimecode' and 'mClusterOffset' are probably genuine potential issues,
see bug 1143096 comment 2 for details.
2016-02-03 14:25:47 +11:00
Birunthan Mohanathas
e00f212825 Bug 1235261 - Part 6: Rename AutoInfallibleTArray to AutoTArray. r=froydnj 2016-02-02 17:36:31 +02:00
Birunthan Mohanathas
d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Andreas Tolfsen
27104021fd Bug 1239987 - Remove marionette-transport dependency from DOM media tests; r=sydpolk
--HG--
extra : commitid : 7YVYsANtOVf
extra : rebase_source : 668465379cb1294d077be1f758b2a29a98f76b9d
extra : histedit_source : bc77f008fe9c987e9384a882ad17185e124568db
2016-01-30 08:55:54 +00:00
Fabrice Desré
c3b0e3137e Bug 1245052 - various media b2g build errors r=jya 2016-02-02 05:12:55 -08:00
Gerald Squelart
7511beb447 Bug 1239983 - Diags around TrackBuffersMgr promises - r=jya
Added diagnostics around demuxer init/reset promises, to catch early cases
where TrackBuffersManager::mInputDemuxer is destroyed while an init/reset
promise is in flight, which would cause later issues when the 'Then' clause
assumes that mInputDemuxer still exists.

Note: This is *not* an actual fix for crashes linked to this bug, but it should
help identify unexpected situations, or instead eliminate these patched
locations as sources of crashes.
A new bug will be needed to examine the fallout from this patch and produce a
real fix, or continue investigating.
2016-02-02 20:20:03 +11:00
Kaku Kuo
38b05e6a4e Bug 1242338 - test cases; r=jwwang
--HG--
extra : transplant_source : d%1F%1D0%14%EFr.o%D2pUyr%E8%CA%B8%AB%FD%01
2016-01-25 17:57:57 +08:00
Kaku Kuo
300161c223 Bug 1242338 - fix numerical issue in MediaDecoder::Seek(); r=jwwang
--HG--
extra : transplant_source : T%A6%E5%E4%C7%EC%AA%7Ba%5E%F9%BA%9B%91%DC%18%E1%F9%FF%A5
2016-01-25 19:15:27 +08:00
Jean-Yves Avenard
1397b86c7b Bug 1243608: P6. Only seek audio to video seek time when performing a fast seek. r=cpearce
This allows for much faster seek time.
2016-02-02 18:57:14 +11:00
Jean-Yves Avenard
1f7e6f40c9 Bug 1243608: P5. Add type utility methods to SeekTarget class. r=cpearce 2016-02-02 18:57:13 +11:00
Jean-Yves Avenard
e345db00ed Bug 1243608: P4. Have MediaDecoderReader::SeekPromise return a TimeUnit. r=cpearce 2016-02-02 18:57:13 +11:00
Jean-Yves Avenard
b7b6a77158 Bug 1243608: P3. Make SeekTarget::mTime a TimeUnit object. r=cpearce
Also makes it a private member and provide a GetTime() accessor instead.
2016-02-02 18:57:12 +11:00
Jean-Yves Avenard
83fff9be79 Bug 1243608: P2. Pass the full SeekTarget object to MediaDecoderReader::Seek. r=cpearce
This will allow the reader to know if we are performing a fast seek.
2016-02-02 18:57:12 +11:00
Jean-Yves Avenard
cacbb382cd Bug 1243608: P1. Only use video time if video frame contains seek target. r=cpearce
This restrict the behaviour introduced in bug 1112438.
2016-02-02 18:57:11 +11:00
Jean-Yves Avenard
13208cc3e7 Bug 1244523: [mp4] P4. Add gtest. r=kentuckyfriedtakahe 2016-02-02 16:27:49 +11:00
Jean-Yves Avenard
52d9bcf3d6 Bug 1244523: P1. Allow video/quicktime mimetype. r=cpearce
It's just like video/mp4
2016-02-02 16:27:46 +11:00
Carsten "Tomcat" Book
ef0f3cb049 Backed out changeset 3c471a71317e (bug 1112438) for m2 test failures 2016-02-01 10:08:41 +01:00
Jean-Yves Avenard
f7eb24a6ab Bug 1244477: Offset seek time by start time. r=jwwang
We adjust the timestamps as frames are returned by the decoder, but weren't adjusting the seek time.
2016-02-01 17:45:32 +11:00
Jean-Yves Avenard
49b4401684 Revert "Bug 1112438 - Make newCurrentFrameTime more accurate while seeking by checking audio & video timestamp boundary in addition. r=cpearce" r=cpearce
This reverts commit 4b812ca9

The original commit was a work around for poorly encoded videos generated by some FFOS devices which could make the first audio frame non-zero. Trying then to make them appear as zero when seeking to start.

There are better ways to get around this problem.
2016-02-01 17:45:32 +11:00
Sotaro Ikeda
63c6d1ff18 Bug 1239611 - Remove GonkNativeWindowClient r=nical 2016-01-31 16:29:59 -08:00