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

7859 Коммитов

Автор SHA1 Сообщение Дата
JW Wang 462f1fb025 Bug 1298217. Part 6 - Move some code to the entry action of DECODER_STATE_COMPLETED. r=kaku
MozReview-Commit-ID: 5hf3NV5uLvS

--HG--
extra : rebase_source : 648b0a5ebfcc549ba888a1904185a4ef2f43e083
2016-08-26 06:25:15 +12:00
JW Wang d74f20ebb4 Bug 1298217. Part 5 - Move the call to |SetState(DECODER_STATE_COMPLETED)| out of CheckIfDecodeComplete() to make it easier to move more code to entry actions. r=kaku
MozReview-Commit-ID: 7nJTIGwPyCs

--HG--
extra : rebase_source : a3834124401ea97c43d383e6adf34db282a00205
2016-08-26 06:18:53 +12:00
JW Wang e3bb274c85 Bug 1298217. Part 4 - Remove the call to DispatchDecodeTasksIfNeeded() from CheckIfDecodeComplete() because we've decoded all samples. r=kaku
MozReview-Commit-ID: 22qa8K8j5zb

--HG--
extra : rebase_source : 62601ec6e7d34fe8cdf3e2f031b531bb46190074
2016-08-26 06:08:54 +12:00
JW Wang e44da8a1e4 Bug 1298217. Part 3 - Remove the check for IsShutdown() from CheckIfDecodeComplete() because it is called only when mState is DECODING or BUFFERING. r=kaku
MozReview-Commit-ID: 80eWIjZnLAO

--HG--
extra : rebase_source : cc41e66fba57f7b2d0d7e583136e7e9fd8d9790e
2016-08-26 06:06:20 +12:00
JW Wang fe3759a62a Bug 1298217. Part 2 - Move some code to the entry action of DECODER_STATE_DORMANT. r=kaku
MozReview-Commit-ID: 9q35AhxS5IP

--HG--
extra : rebase_source : 3073e87bc126b8dda594d295a403b087689299bd
2016-08-26 05:58:12 +12:00
JW Wang 3e7acbb34a Bug 1298217. Part 1 - Move the code about decoding metadata to the entry action of DECODER_STATE_DECODING_METADATA. r=kaku
MozReview-Commit-ID: Dyb0HnMTLpQ

--HG--
extra : rebase_source : 06bbbd437b3e388fde3b3fc251a2c176472aabf9
2016-08-26 10:52:52 +12:00
JW Wang 67073c9df0 Bug 1297301. Part 2 - remove dom/media/raw. r=cpearce
MozReview-Commit-ID: E1XcTwRfsx3

--HG--
extra : rebase_source : b4c7a4709481ed07e88d91b82bc44cb3c315d327
2016-08-24 22:49:16 +12:00
JW Wang 6862b9379e Bug 1297301. Part 1 - Remove #ifdef MOZ_RAW. r=kentuckyfriedtakahe
MozReview-Commit-ID: LF4if8bZZGY

--HG--
rename : dom/media/raw/RawStructs.h => netwerk/protocol/device/RawStructs.h
extra : rebase_source : 96191a564754311200d6df36b1643990efa87e51
2016-08-24 11:02:37 +12:00
ctai 310fb4ce18 Bug 894922 - Enable test case on windows. r=jwwang.
MozReview-Commit-ID: CaKry95yiPY

--HG--
extra : rebase_source : 8b114be0c54f7d21d7d84c5600cdbfbcfa0fcf54
2016-08-29 14:36:14 +08:00
Munro Mengjue Chiang c8fa8d35f8 Bug 1272877 - dispatch GetAsSourceSurface() to main thread to prevent assert; r=jesup
MozReview-Commit-ID: 7Y5cuNFw8sm

--HG--
extra : rebase_source : a418c6baa2e2ecb52155dc9f7a1320b41acd3b6b
2016-08-23 15:45:23 +08:00
Wes Kocher 08fbeaaf2e Merge m-c to autoland, a=merge 2016-08-29 17:57:01 -07:00
Wes Kocher ed461fdf11 Merge inbound to m-c a=merge 2016-08-29 17:40:50 -07:00
Ryan VanderMeulen f55f7d9df3 Backed out 3 changesets (bug 1286041) for crashtest failures.
Backed out changeset 5e08455b6011 (bug 1286041)
Backed out changeset 25dd85b13da9 (bug 1286041)
Backed out changeset 48bb5e3170a0 (bug 1286041)

--HG--
extra : rebase_source : 303a619a5be40f81fcd1a418f0b5253c1e34c2d0
2016-08-29 17:05:33 -04:00
Ryan VanderMeulen 4460ee8698 Backed out changeset 5f43357fe5b4 (bug 1284909) for bustage on a CLOSED TREE. 2016-08-29 11:25:00 -04:00
Kaku Kuo 8f72f1ce87 Bug 1286454 part 4 - remove DecoderData::mDiscontinuity since it leads to nothing now; r=jwwang
MozReview-Commit-ID: I6Qzq1p6GyT

--HG--
extra : rebase_source : 796fa9611c31068cec69b631b26e542ae1cf4295
2016-08-25 18:18:22 +08:00
Kaku Kuo a863ce05a0 Bug 1286454 part 3 - remove MediaDecoderReader::mVideoDiscontinuity since it leads to nothing now; r=jwwang
MozReview-Commit-ID: 1JMngmA61Bd

--HG--
extra : rebase_source : 10e74faa50c897f130006014956d85f4c3886020
2016-08-25 18:16:05 +08:00
Kaku Kuo 4000b4f2ab Bug 1286454 part 2 - remove MediaDecoderReader::mAudioDiscontinuity since it leads to nothing now; r=jwwang
MozReview-Commit-ID: DjOXLa5aDm1

--HG--
extra : rebase_source : 1ada8cb696ffdd884723a2c75634a3edfcad1815
2016-08-25 18:14:17 +08:00
Kaku Kuo fcd9df9127 Bug 1286454 part 1 - remove MediaData::mDiscontinuity; r=jwwang
This member is only assigned but never used now.

MozReview-Commit-ID: IbuAbRaXzc4

--HG--
extra : rebase_source : 166bd3bc7478f725b64b5b2a0e8e258980674d06
2016-08-25 20:30:02 +08:00
Jan-Ivar Bruaroey de3b766278 Bug 1284909 - Allow raw deviceId constraints in gUM when caller is chrome. r=jesup
MozReview-Commit-ID: IB0BhGKbdam

--HG--
extra : rebase_source : 9ed1f4218e66bd3c96d044cacce167cbde79e775
2016-08-19 16:39:54 -04:00
Jean-Yves Avenard 2014b787b8 Bug 1298617: [MSE] P3. Optimize sample search by breaking loop early. r=gerald
MozReview-Commit-ID: 48YcQiy0p8S

--HG--
extra : rebase_source : 00e6c3468618bc6811faa80b5da590ab9e31d582
2016-08-28 02:43:36 +12:00
Jean-Yves Avenard da968e2d25 Bug 1298617: [MSE] P2. Attempt to search the exactly matching sample first. r=gerald
MozReview-Commit-ID: AW1T51n6WMl

--HG--
extra : rebase_source : 241a200fdb4f450e8188000aa70ea058aae817b5
2016-08-28 02:38:59 +12:00
Jean-Yves Avenard d97b525caa Bug 1298617: [MSE] P1. Don't attempt to estimate next sample time if exact value known. r=gerald
MozReview-Commit-ID: 8DE9WHFsePt

--HG--
extra : rebase_source : dd9edb407d6f2cc8ba76367fca0e10fb91f2eea7
2016-08-28 02:34:44 +12:00
Jean-Yves Avenard d9412b2ac0 Bug 1298594: P5. Fix mochitest. r=gerald
The assumption was that the waiting event would be fired once the last frame prior the gap had been played. This is however incorrect, as per spec, the waiting event is to be fired once readyState is <= HAVE_CURRENT_DATA. So the waiting event is actually fired anytime between the start of the last frame and its end.

MozReview-Commit-ID: AA4Qhn7okhB

--HG--
extra : rebase_source : fc1f336b2e07cc2549071563804de8fae9c9ab67
2016-08-29 16:07:38 +10:00
Jean-Yves Avenard b3537bb63d Bug 1298594: P4. Pop the frame when current time is past the end of the current frame. r=jwwang
Most frames start when the previous one stop.

MozReview-Commit-ID: H92Bmiki49Q

--HG--
extra : rebase_source : 071416d9151d5188550d73f0eb5a4c70a5fbd48b
2016-08-29 15:46:56 +10:00
Jean-Yves Avenard 9e433b8a83 Bug 1298594: P3. Ensure currentTime is updated prior changing readyState. r=jwwang
Otherwise we get intermittent in mochitests checking the value of currenTime when events are fired

MozReview-Commit-ID: AVktWrXochp

--HG--
extra : rebase_source : 76c952e62e9b449834d5924454c25ddad305ada6
2016-08-28 21:20:52 +10:00
Jean-Yves Avenard a9dab88295 Bug 1298594: [MSE] P1. Add mochitest to verify correct behavior. r=gerald
1- We shouldn't reach ended if we have a gap in the buffered range prior the end of the file (see bug 1297036)
2- Waiting should be fired when readyState goes below HAVE_FUTURE_DATA

MozReview-Commit-ID: 18bEnkNpYvO

--HG--
extra : rebase_source : c42c7fd19fec9ede5bb64ea697a0086116882403
2016-08-27 00:08:38 +12:00
Jean-Yves Avenard 3b8c226443 Bug 1297036: [MSE] P6. Fix invalid mochitest. r=gerald
The test accidentally worked because any demuxing failures in ended mode would be treated as EOS. There's no audio between [0-3), so playback couldn't start

MozReview-Commit-ID: 4B90CrVUTy4

--HG--
extra : rebase_source : 9079aa8a6983877745baac71c7868ca360b85095
2016-08-28 12:26:40 +10:00
Jean-Yves Avenard 46842a940a Bug 1297036: [MSE] P5. Make fuzz research consistent. r=gerald
The aim is to only allow skipping gaps of fuzz=500ms.

MozReview-Commit-ID: 8uHxni2nPHI

--HG--
extra : rebase_source : ccef593170fb3a0c3ff61dc97ad1a0508be06934
2016-08-27 23:51:40 +10:00
Jean-Yves Avenard 8d676d83a6 Bug 1297036: [MSE] P4. Only report end of stream when reaching the end. r=gerald
MozReview-Commit-ID: 5EWhBVnscXY

--HG--
extra : rebase_source : 914aa1b8abb8d4026993281dbd68b1ba2ef04642
2016-08-28 01:00:39 +12:00
Jean-Yves Avenard 90f7e263a7 Bug 1297036: P3. Revert "Bug 1293646: [MSE] P2. Only reject a seek request with EOS if it's passed the explicit duration." r=gerald
This reverts commit 5a949eb358e27

Another more complete solution will follow.

MozReview-Commit-ID: K3lTdrBxW7W

--HG--
extra : rebase_source : d0f9443193b0816ae85972a4a368599b872fd437
2016-08-26 19:30:50 +12:00
Jean-Yves Avenard 03f6dc4d61 Bug 1297036: [MSE] P2. Make seek always succeed when attempting to seek past the end time. r=gerald
MozReview-Commit-ID: H2YJu7vY0aP

--HG--
extra : rebase_source : 73b1e324a6d9f8612ef03dcbf7dc5e5a91c7e2b2
2016-08-26 19:23:29 +12:00
Jean-Yves Avenard e4f3e62f41 Bug 1297036: [MSE] P1. Add mochitest to verify behavior. r=gerald
Seeking in the buffered range should always succeed, even if we have no data in a given track

MozReview-Commit-ID: FGjsDCNIdWC

--HG--
extra : rebase_source : c91348e44055f82deee0e97da4abef0cf799b225
2016-08-26 23:10:00 +12:00
Jean-Yves Avenard fb042f363f Bug 1298606: P3. Fix coding style. r=gerald
MozReview-Commit-ID: L5MHnYOkyDV

--HG--
extra : rebase_source : 5da52435a47cc1dae14459ad44e910329c702ce4
2016-08-29 16:59:17 +10:00
Jean-Yves Avenard 85862da5ee Bug 1298606: [MSE] P2. Properly determine next frame status in ended state. r=gerald
MozReview-Commit-ID: 2m05GzauHes

--HG--
extra : rebase_source : d5541dd96dc0480c41e7d68cfb96a95243b9a454
2016-08-27 22:27:22 +12:00
Jean-Yves Avenard e45036c616 Bug 1298606: P1. Add Intervals::ContainsStrict method. r=gerald
MozReview-Commit-ID: 7XA8xVUWSi7

--HG--
extra : rebase_source : e8123ed9a11063a5e0e83f4b31bb9cafec7f02b4
2016-08-27 20:24:31 +10:00
Jean-Yves Avenard 954647ed96 Bug 1297218: [MSE] Remove unnecessary call to Find(). r=gerald
MozReview-Commit-ID: Af7mzXbLiNy

--HG--
extra : rebase_source : b3107a0be24a839be06ab5d4d22045a6fb0c94c3
2016-08-26 16:51:18 +12:00
Jean-Yves Avenard 5b04109e85 Bug 1297037: [MSE] Update Duration Change algorithm as per latest spec. r=gerald
The MSE spec was recently updated to use the highest end time across tracks rather than across the buffered ranges.

See https://github.com/w3c/media-source/issues/124 and the fix described in https://github.com/w3c/media-source/pull/154

MozReview-Commit-ID: 4CqI8d2e9gu

--HG--
extra : rebase_source : b25f0e2a76c517c0dca0a9def00edd6eff38d8ad
2016-08-26 16:39:36 +12:00
JW Wang 663ca6b4fa Bug 1297553 - Dump more debugging messages for MDSM and MediaSink. r=kaku
MozReview-Commit-ID: ILcF1hT2hVN

--HG--
extra : rebase_source : 1f6564eb5161608ee6031b1c362a6b689762dcfe
2016-08-24 11:45:58 +12:00
Gerald Squelart d56f52d1c6 Bug 1298271 - Make BoxReader use AutoByteReader - r=jya
This is done by moving FlacFrameParsers' AutoByteReader to a more public spot
in libstagefright's bindings.
Using AutoByteReader means there is no more need for explicit calls to
DiscardRemaining(); which means our parsers relying on BoxReader will be more
lenient about boxes that are larger than needed.

MozReview-Commit-ID: 3EERU749WYB

--HG--
extra : rebase_source : 6deba02ac553303b0a2b694c24bfcb54c2e732b1
2016-08-26 18:14:24 +10:00
Gerald Squelart 2088a45732 Bug 1298275 - Make ~AutoByteReader non-virtual - r=jya
Also ByteReader and AutoByteReader are marked RAII, to help prevent misuses.

MozReview-Commit-ID: 7oklXs4QMnq

--HG--
extra : rebase_source : 54fca3168a70d951e6012baea4bf0544827cae11
2016-08-26 17:27:23 +10:00
Byron Campen [:bwc] d4187beab5 Bug 1275461 - Part 2: See if slowing down the color changes helps. r=drno
MozReview-Commit-ID: HuYKmnXMl4T

--HG--
extra : rebase_source : 98a87572ac9cc07aa51102a9faf4058a9521e199
2016-08-22 12:43:03 -05:00
Alex Chronopoulos d635328838 Bug 1286041 - Assert audio callback is not called in initialized state. r=jwwang 2016-07-12 16:53:58 +02:00
Ryan VanderMeulen 1c0c6ec5d4 Merge m-c to inbound. a=merge 2016-08-29 12:56:19 -04:00
Michael Layzell b258dfaa89 Bug 1297802 - Remove unused RefPtr<> and COMPtr<> types in dom/, r=baku
MozReview-Commit-ID: CLUJZdbN7sW
2016-08-29 11:40:02 -04:00
Randell Jesup 9f2b9ce819 Bug 1298698: Block race between EnsureNextIteration and WaitForNextIteration r=karlt 2016-08-29 10:41:01 -04:00
Munro Mengjue Chiang 7290087ca7 Bug 1297911 - followup: if block needs to be braced; r=jib
MozReview-Commit-ID: I44jAWKquTd

--HG--
extra : rebase_source : a59a286a63aa12ff8f10aae340d0ad7b6f028c98
2016-08-25 14:07:42 +08:00
Wes Kocher f78f2d693b Merge inbound to central, a=merge 2016-08-25 16:59:00 -07:00
Ryan VanderMeulen e5adfbffe6 Merge m-c to autoland. a=merge
--HG--
rename : accessible/tests/browser/browser_caching_attributes.js => accessible/tests/browser/e10s/browser_caching_attributes.js
rename : accessible/tests/browser/browser_caching_description.js => accessible/tests/browser/e10s/browser_caching_description.js
rename : accessible/tests/browser/browser_caching_name.js => accessible/tests/browser/e10s/browser_caching_name.js
rename : accessible/tests/browser/browser_caching_relations.js => accessible/tests/browser/e10s/browser_caching_relations.js
rename : accessible/tests/browser/browser_caching_states.js => accessible/tests/browser/e10s/browser_caching_states.js
rename : accessible/tests/browser/browser_caching_value.js => accessible/tests/browser/e10s/browser_caching_value.js
rename : accessible/tests/browser/browser_events_caretmove.js => accessible/tests/browser/e10s/browser_events_caretmove.js
rename : accessible/tests/browser/browser_events_hide.js => accessible/tests/browser/e10s/browser_events_hide.js
rename : accessible/tests/browser/browser_events_show.js => accessible/tests/browser/e10s/browser_events_show.js
rename : accessible/tests/browser/browser_events_statechange.js => accessible/tests/browser/e10s/browser_events_statechange.js
rename : accessible/tests/browser/browser_events_textchange.js => accessible/tests/browser/e10s/browser_events_textchange.js
rename : accessible/tests/browser/browser_treeupdate_ariadialog.js => accessible/tests/browser/e10s/browser_treeupdate_ariadialog.js
rename : accessible/tests/browser/browser_treeupdate_ariaowns.js => accessible/tests/browser/e10s/browser_treeupdate_ariaowns.js
rename : accessible/tests/browser/browser_treeupdate_canvas.js => accessible/tests/browser/e10s/browser_treeupdate_canvas.js
rename : accessible/tests/browser/browser_treeupdate_cssoverflow.js => accessible/tests/browser/e10s/browser_treeupdate_cssoverflow.js
rename : accessible/tests/browser/browser_treeupdate_doc.js => accessible/tests/browser/e10s/browser_treeupdate_doc.js
rename : accessible/tests/browser/browser_treeupdate_gencontent.js => accessible/tests/browser/e10s/browser_treeupdate_gencontent.js
rename : accessible/tests/browser/browser_treeupdate_hidden.js => accessible/tests/browser/e10s/browser_treeupdate_hidden.js
rename : accessible/tests/browser/browser_treeupdate_imagemap.js => accessible/tests/browser/e10s/browser_treeupdate_imagemap.js
rename : accessible/tests/browser/browser_treeupdate_list.js => accessible/tests/browser/e10s/browser_treeupdate_list.js
rename : accessible/tests/browser/browser_treeupdate_list_editabledoc.js => accessible/tests/browser/e10s/browser_treeupdate_list_editabledoc.js
rename : accessible/tests/browser/browser_treeupdate_listener.js => accessible/tests/browser/e10s/browser_treeupdate_listener.js
rename : accessible/tests/browser/browser_treeupdate_optgroup.js => accessible/tests/browser/e10s/browser_treeupdate_optgroup.js
rename : accessible/tests/browser/browser_treeupdate_removal.js => accessible/tests/browser/e10s/browser_treeupdate_removal.js
rename : accessible/tests/browser/browser_treeupdate_table.js => accessible/tests/browser/e10s/browser_treeupdate_table.js
rename : accessible/tests/browser/browser_treeupdate_textleaf.js => accessible/tests/browser/e10s/browser_treeupdate_textleaf.js
rename : accessible/tests/browser/browser_treeupdate_visibility.js => accessible/tests/browser/e10s/browser_treeupdate_visibility.js
rename : accessible/tests/browser/browser_treeupdate_whitespace.js => accessible/tests/browser/e10s/browser_treeupdate_whitespace.js
rename : accessible/tests/browser/doc_treeupdate_ariadialog.html => accessible/tests/browser/e10s/doc_treeupdate_ariadialog.html
rename : accessible/tests/browser/doc_treeupdate_ariaowns.html => accessible/tests/browser/e10s/doc_treeupdate_ariaowns.html
rename : accessible/tests/browser/doc_treeupdate_imagemap.html => accessible/tests/browser/e10s/doc_treeupdate_imagemap.html
rename : accessible/tests/browser/doc_treeupdate_removal.xhtml => accessible/tests/browser/e10s/doc_treeupdate_removal.xhtml
rename : accessible/tests/browser/doc_treeupdate_visibility.html => accessible/tests/browser/e10s/doc_treeupdate_visibility.html
rename : accessible/tests/browser/doc_treeupdate_whitespace.html => accessible/tests/browser/e10s/doc_treeupdate_whitespace.html
rename : accessible/tests/browser/events.js => accessible/tests/browser/e10s/events.js
rename : browser/components/extensions/test/browser/browser_ext_pageAction_context.js => browser/components/extensions/test/browser/browser_ext_pageAction_title.js
rename : browser/components/extensions/test/browser/browser_ext_pageAction_context.js => browser/components/extensions/test/browser/head_pageAction.js
rename : dom/events/test/pointerevents/pointerevent_element_haspointercapture.html => dom/events/test/pointerevents/pointerevent_element_haspointercapture-manual.html
rename : dom/events/test/pointerevents/test_pointerevent_element_haspointercapture.html => dom/events/test/pointerevents/test_pointerevent_element_haspointercapture-manual.html
rename : gfx/thebes/DeviceManagerD3D11.cpp => gfx/thebes/DeviceManagerDx.cpp
rename : gfx/thebes/DeviceManagerD3D11.h => gfx/thebes/DeviceManagerDx.h
rename : media/webrtc/trunk/tools/gyp/test/compiler-override/compiler.gyp => media/webrtc/trunk/tools/gyp/test/compiler-override/compiler-exe.gyp
rename : media/webrtc/trunk/tools/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings => media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings
rename : media/webrtc/trunk/tools/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings => media/webrtc/trunk/tools/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist-error.strings
rename : media/webrtc/trunk/tools/gyp/test/mac/gyptest-postbuild-static-library.gyp => media/webrtc/trunk/tools/gyp/test/mac/gyptest-postbuild-static-library.py
rename : media/webrtc/trunk/tools/gyp/test/rules/src/subdir4/asm-function.asm => media/webrtc/trunk/tools/gyp/test/rules/src/subdir4/asm-function.assem
rename : mfbt/unused.h => mfbt/Unused.h
rename : testing/web-platform/tests/pointerevents/pointerevent_element_haspointercapture.html => testing/web-platform/tests/pointerevents/pointerevent_element_haspointercapture-manual.html
extra : rebase_source : a3de7d91a61df9b14fe07a89f5b0184a067549cf
2016-08-25 08:14:36 -04:00
Ryan VanderMeulen 520acfd195 Merge inbound to m-c. a=merge 2016-08-25 08:10:52 -04:00
Randell Jesup fd2b3d5eb8 Bug 1255737: don't set a shutdown timer if we don't have a shutdown ticket r=pehrsons 2016-08-24 12:24:17 -04:00
JW Wang 2fa66fff7d Bug 1295906 - Remove the call to |mVideoFrameContainer->ClearCurrentFrame()| from ReleaseResources(). r=jya
ReleaseResources() is called when MDSM enters dormant or during shutdown.

When it is called in response to dormant request, we don't want to clear
current frames so we are able to enter dormant state more aggressively
even when the media element is visible to the user.

When it is called from MediaDecoderReader::Shutdown(), it doesn't really
call ClearCurrentFrame() because MediaFormatReader::Shutdown clears the
|mVideoFrameContainer| pointer. So it doesn't make a difference to remove
the call.


MozReview-Commit-ID: IakGHbSMWTv

--HG--
extra : rebase_source : 7a25de39e04f5c7728bf65fcd447cc67b7a85411
extra : source : 44ff0ffaf63ad51a7a382cf0ee1c16e64ade63b9
2016-08-17 17:11:19 +08:00
Jean-Yves Avenard bca42a94d5 Bug 1297580: [MSE] P4. Add mochitest. r=gerald
MozReview-Commit-ID: IulzS2GSHa2

--HG--
extra : rebase_source : aeae90406b115d8215a5b134a54f34d7c3c49baa
2016-08-25 10:59:42 +12:00
Jean-Yves Avenard b32b9b034f Bug 1297580: [MSE] P3. Increase gap threshold to 500ms. r=gerald,kentuckyfriedtakahe
MozReview-Commit-ID: Ii9YjJ7YaJB

--HG--
extra : rebase_source : 0871be48b09bcb804ecca3bf67548c06441e21c7
2016-08-24 17:21:57 +12:00
Jean-Yves Avenard 94ece3bfc4 Bug 1297580: [MSE] P2. Halves the fuzz value when checking if seek target is present. r=gerald
The fuzz value is a +/- one. To check if a target is within an interval
we need to check with half the fuzz only.

MozReview-Commit-ID: J5H5sbNokse

--HG--
extra : rebase_source : aeedcb111c84a353307c8e641385ef0800792fa7
2016-08-24 17:20:52 +12:00
Jean-Yves Avenard a3cc5764c1 Bug 1297580: P1. Remove broken optimisation in IntervalSet. r=gerald
Interval.LeftOf would always return true if the length of the interval
is less than the fuzzing value.

MozReview-Commit-ID: L9uyZjQXnGA

--HG--
extra : rebase_source : af14038da603b928c7a4942f1b37f031908e61bb
2016-08-24 17:17:25 +12:00
Andreas Pehrson 20c6e5d1e0 Bug 1259788 - Remove direct track listeners from TrackUnionStream before inputs are removed. r=jesup
MozReview-Commit-ID: DTHF2pHEFSt

--HG--
extra : rebase_source : feddfc8ddbae33b2c97d0009b2a648ca71b33bbe
2016-08-23 18:08:19 +02:00
Andreas Pehrson 9f015ef1b0 Bug 1259788 - Implement disabled track modes for direct track listeners. r=jesup
MozReview-Commit-ID: H8TygONnCiv

--HG--
extra : rebase_source : 58f76583517fcf1f7f49e8c6fae139f402a83e52
2016-08-23 18:05:51 +02:00
Andreas Pehrson 821c28c6c3 Bug 1259788 - Use RefPtr<MediaStream> in NewRunnableMethod() in DOMMediaStream. r=jesup
MozReview-Commit-ID: F7nNCJBcWGz

--HG--
extra : rebase_source : b3e9243e60f9d1bcc51b459747d8a927ed5b4555
2016-08-18 18:24:50 +02:00
Andreas Pehrson dfb49b5ab0 Bug 1259788 - Raise "addtrack" in separate tasks. r=jesup
Turns out runnables added through
MediaStreamGraph::DispatchToMainThreadAfterStreamStateUpdate on the same
iteration are all run in the same task. Creating them in the owning dom stream
in one task solves the timing issues and lets us add them
(and raise "addtrack") in individual tasks.

MozReview-Commit-ID: 9Q3NoFrmnQs

--HG--
extra : rebase_source : aa391668ec424d2f9b1485f6218d7d1f9948abc9
2016-08-22 12:23:37 +02:00
Andreas Pehrson 9a907cfbfc Bug 1259788 - Add a new disabled mode for MSG tracks. r=jesup
MozReview-Commit-ID: 1dMTR4Wmcd8

--HG--
extra : rebase_source : 8c2ea262d53901a11ec5c0e5067f328461dee8f2
2016-08-15 14:19:42 +02:00
Andreas Pehrson 091e8c0b00 Bug 1259788 - Support MediaStream sources for HTMLMediaElement.mozCaptureStream(). r=jesup
This adds support for HTMLMediaElement.mozCaptureStream() and
mozCaptureStreamUntilEnded() for a HTMLMediaElement playing a MediaStream.

This is up to spec, while capturing a HTMLMediaElement playing a file is not.
This incompatibility means we cannot mix sources for the returned MediaStream.

As such, a MediaStream returned while the HTMLMediaElement was playing a file
will only have content while the element is playing files. If the src changes
to a MediaStream, the stream will be empty.

It works the same way if a MediaStream was captured while the HTMLMediaElement
was playing another MediaStream.

This is due to TrackID management - MediaDecoder doesn't care, and creates new
tracks when you seek, so users are unable to keep track, while for MediaStream
we control everything from main thread and keep track of the TrackIDs used
previously.

This also adds a separate path from MediaElementAudioSourceNode so that we don't
forward video tracks when the returned MediaStream is only used internally for
WebAudio. We should in that case not require a DOMMediaStream but just forwarding
tracks to a TrackUnionStream should be enough, and will save us some cpu cycles.
This is however fine for now as it's simpler.

MozReview-Commit-ID: Bg8hESDISDU

--HG--
extra : rebase_source : 83885a73ec8cfc5fbe3c30a9330a52cd6b6dff12
extra : source : f1aec79078869c0a6435a1c06957c649d7a40dd9
2016-08-23 17:51:50 +02:00
JW Wang d13f41c2a0 Bug 1294616 - Somewhat improve the string performance by defining string literals whose length is known at compile time. r=cpearce
MozReview-Commit-ID: LAlqMDtGQN7

--HG--
extra : rebase_source : 4f2cdc9cb9ee7e4dd024d47dad329304f6ba70ae
extra : source : 6db22a524b1452fc50bf56535e7c619a8441dcfe
2016-08-15 15:41:53 +08:00
JW Wang a208d2cb40 Bug 1295073 - Remove the aRealTime parameter from the MediaDecoderStateMachine constructor. r=cpearce
MozReview-Commit-ID: BXMVAV1R3gx

--HG--
extra : rebase_source : 0749ff95de361da3c935dfe113690aa8c5e7dc2a
2016-08-15 14:54:10 +08:00
Andreas Pehrson 83dcc7266e Bug 1259788 - Break out AddTrackInternal() from DOMMediaStream::CreateDOMTrack. r=jesup
Sometimes a track is added to a stream synchronously (before the stream is
exposed to script), and sometimes asynchronously (see the mediacapture-main spec
on the "addtrack" event).

In the latter case we might still need to create the MediaStreamTrack object
synchronously for tracking purposes. CaptureStream of Media element playing a
MediaStream wants this.

MozReview-Commit-ID: 7me8xzN7rwj

--HG--
extra : rebase_source : 4f129b127b855e47aad2ae9ab3981ffde057412d
2016-08-12 13:50:41 +02:00
Munro Mengjue Chiang b6c7822e72 Bug 1296684 - export DeviceChangeCallback.h no matter webrtc is enabled or not; r=jib
MozReview-Commit-ID: 9xocLhe1QZw

--HG--
extra : rebase_source : cfa81f49e8b98b93c90a6ea436ee106db7a12f00
2016-08-22 18:16:28 +08:00
Chia-hung Tai 80a7e0d9a0 Bug 1292335 - Call mozCaptureStreamUntilEnded in loadedmetadata. r=pehrsons.
MozReview-Commit-ID: 5S3jR9V23Yn

--HG--
extra : rebase_source : 65fa7e3f76318d1149a9700fae96a55a9a395d31
2016-08-22 11:01:27 +08:00
Andreas Pehrson 0a0c94abc9 Bug 1297099 - Change LoadManagerSingleton WeakPtr to RefPtr. r=jesup
--HG--
extra : rebase_source : c40fe1ca338ca3e8aed7e618ea4dd8e95dc74672
2016-08-25 10:04:58 -04:00
James Cheng c6899c4863 Bug 1290830 - [Part2] Remove the GMP types using genral types instead. r=cpearce
MozReview-Commit-ID: 3EKwTNPddI1

--HG--
extra : rebase_source : 00f7267a76ad299b52d02b16425bb266ee58985b
2016-08-02 15:05:21 +08:00
James Cheng b74f50bca9 Bug 1290830 - [Part1] Detach the GMPDecryptorProxyCallback interface to DecryptorProxyCallback. r=cpearce
MozReview-Commit-ID: EPGf0ITakPO

--HG--
extra : rebase_source : 1186be0680789c1f9e66366e549fd5ec5b418a38
2016-08-01 17:37:18 +08:00
Sebastian Hengst 2f9e419db4 Backed out changeset 7e3e593e8141 (bug 1295352) for failing mda test test_getUserMedia_basicTabshare.html. r=backout on a CLOSED TREE 2016-08-23 20:46:13 +02:00
Andreas Pehrson e00a5345bd Bug 1295352 - Check state in MediaEngines' NotifyPull(). r=jesup
GetEndOfAppendedData() returns null and calls a NS_ERROR() if the track we're
looking for doesn't exist - to indicate an error in the caller's code.

When we end a MediaEngine track we set the state to stopped, which we can use
to guard the calls to GetEndOfAppendedData() (and appending data in general).
The locking is already in place.

MozReview-Commit-ID: DuknmBF883H

--HG--
extra : rebase_source : 6304e61a4050f0ea9c31ee01f5b42f5cb45b9bf6
2016-08-23 10:45:09 +02:00
Ryan VanderMeulen 69113163cf Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Ryan VanderMeulen 2b4ac234e9 Merge m-c to inbound. a=merge 2016-08-25 08:27:17 -04:00
Nicholas Nethercote c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Cykesiopka a16f7b0f6a Bug 1296316 - Convert nsNSSShutDownObject::CalledFromType to an enum class. r=mgoodwin
enum classes are in general safer than plain enums, and as such should be
preferred.

MozReview-Commit-ID: 1FK89SNhdk4

--HG--
extra : rebase_source : 764c4855026c02d8c9e33ca33637fec54ea5ca31
2016-08-20 23:00:19 +08:00
Ryan VanderMeulen 82663d8710 Merge inbound to m-c. a=merge 2016-08-23 10:05:18 -04:00
Iris Hsiao 1db439cf3b Backed out changeset d6d2cc94bb92 (bug 1295906) for M-e10s crashes on Windows 7 debug 2016-08-23 15:39:20 +08:00
Jean-Yves Avenard 551e91fa7d Bug 1195723: [flac] P15. Add metadata mochitest. r=kamidphish
MozReview-Commit-ID: vVAA2Gnls8

--HG--
extra : rebase_source : afea7fc313d6178fd44154202c5fcb94ad4ab1e3
2016-08-18 16:34:56 +10:00
Jean-Yves Avenard 4f31c80e25 Bug 1195723: [flac] P14. Add support for metadata. r=kamidphish
MozReview-Commit-ID: GDlmGcWRNsM

--HG--
extra : rebase_source : 7e5bbe7186935cc05db5fcd590aa23db6f55eabf
2016-08-18 16:06:38 +10:00
Jean-Yves Avenard 6c04460e8c Bug 1195723: [flac] P13. Add mochitest files. r=kamidphish
MozReview-Commit-ID: 34FlM9HcTDo

--HG--
extra : rebase_source : 67ecb3f56f51be797f68cb1b1799d721854b1271
2016-08-18 15:30:52 +10:00
Jean-Yves Avenard 07e2fafa73 Bug 1195723: [flac] P12. Add sniffer for streaming flac. r=kamidphish
MozReview-Commit-ID: P62v6vsXzs

--HG--
extra : rebase_source : aec72ae19890e3c21f4557c4899cf1697e7e94cc
2016-08-18 13:07:11 +10:00
Jean-Yves Avenard 72e257f20f Bug 1195723: [flac] P9. Hook up flac decoder and demuxer. r=kamidphish
MozReview-Commit-ID: 5Md6mcZkME

--HG--
extra : rebase_source : 8cee6fbc41f7de347702af4d03372a058a86d655
2016-08-17 15:45:06 +10:00
Jean-Yves Avenard ee63d6aef9 Bug 1195723: [flac] P8. Add flac MediaDecoder. r=kamidphish
MozReview-Commit-ID: BQ9fERFEFcg

--HG--
extra : rebase_source : 04d365967a1caa1104e17b78b5b7c1fa46da27ae
2016-08-17 15:42:18 +10:00
Jean-Yves Avenard 51fc514176 Bug 1195723: [flac] P7. Add flac demuxer. r=kamidphish
MozReview-Commit-ID: 5db0hAsDjji

--HG--
extra : rebase_source : 976dbcbcb46b82a7e09a38106df9ad7d2578f829
2016-08-17 15:40:14 +10:00
Jean-Yves Avenard c347ee4238 Bug 1195723: [flac] P6. Add support for raw flac metadata decoding. r=kamidphish
We also move flac related files to their own flac folder.

MozReview-Commit-ID: YnV3HNbjZe

--HG--
extra : rebase_source : 5f064723d68a877d9790f0c51c5d1579d7a9bac4
2016-08-17 15:33:50 +10:00
Jean-Yves Avenard 23f6b3cb6f Bug 1195723: [adts] P4. Add extra mimetype for adts/aac. r=kamidphish
When the content is served by Apache, a file with an .aac extension always see its Content-Type set to x-aacp.

MozReview-Commit-ID: 65NANlKNQek

--HG--
extra : rebase_source : 5f5d4bf65117f862a22698b450dedd2d5f0ef8d1
2016-08-17 15:25:02 +10:00
Randell Jesup dc0ebbd114 Bug 1297101: Reduce audio/video load from fake video/audio for android debug r=dminor
Debug is slow already, and VM emulator debug is glacial and times out a lot
2016-08-22 20:57:13 -04:00
Randell Jesup f2c343d0ec Bug 1297101: disable test_peerConnection_SetParameters on Android VM opt r=dminor 2016-08-22 20:57:11 -04:00
Thomas Wisniewski 6c4149c011 Bug 1017704 - Move DropJSObjects into the destructor in AudioBuffer.cpp. r=mccr8
--HG--
extra : rebase_source : a4c5ee7e40bf26814df7b9397b9862fb08684069
2016-08-20 20:32:52 -04:00
Randell Jesup 327ccb88b0 Bug 1297083: Don't insert audio for GetUserMedia N times if opened N times r=pehrsons 2016-08-22 10:59:00 -04:00
Jean-Yves Avenard 7e55ae1ff5 Bug 1195723: [ogg/flac] P3. Add flac support in ogg. r=kamidphish
This feature is intended to debug the flac parser only and is behind a hidden pref.
There's lots of redundant code in OggCodecState, there's need for a serious cleanup there.

MozReview-Commit-ID: 9H4efd2cfuE

--HG--
extra : rebase_source : cd5f6d16dd319391a0469b8317a18ef1d5e58331
2016-08-04 17:21:53 +10:00
Jean-Yves Avenard f27ae02841 Bug 1195723: [ogg] P2. Refactor mimetype parsing for ogg. r=kamidphish
Make it just like MP4, WebM and all the others new demuxers.
Additionally, make the ogg related preferences part of MediaPrefs.

MozReview-Commit-ID: DTedHyIMv9I

--HG--
extra : rebase_source : 8bfdf971993281454776a7c4fa644c9fc7c5ee8c
2016-08-04 17:14:28 +10:00
Jean-Yves Avenard 75d3e82740 Bug 1195723: [flac] P1. Primitive flac frame parser. r=kamidphish
Currently only handle metadata decoding.

MozReview-Commit-ID: JL4vqtY5kUS

--HG--
extra : rebase_source : 1470a92d12ccf3088d5663cd6d58cedc63922586
2016-08-04 17:09:34 +10:00
Jean-Yves Avenard 07a86a0f91 Bug 1296453: [MSE] P2. Clean up SourceBufferResource. r=gerald
The code was designed around the need for a MediaResource::Read which is
no longer possible since bug 1190238

MozReview-Commit-ID: 7s76YWg93jS

--HG--
extra : rebase_source : 3f6756193c352cf766471dd8cb1fb7646af191e6
2016-08-23 17:38:46 +12:00
Jean-Yves Avenard 8e46c367ed Bug 1296453: [MSE] P1. Fix eviction. r=gerald
The MP4 demuxer returns INT64_MAX when all data can be safely evicted
from the MediaResource.
Additionally, the MP4Demuxer will read the MediaResource using
CacheReadAt.

Eviction in the SourceBufferResource had a safeguard to ensure we would
never evict data we hadn't read yet. This was done by keeping the
position of the last data read in the mOffset member. CacheReadAt
however doesn't update mOffset.

As a result, no data was ever removed from the input buffer when using
MP4.

MozReview-Commit-ID: 2tAWzpMlOjG

--HG--
extra : rebase_source : bec585ca46e7fd0665c00bce525aaacede1b3897
2016-08-23 17:18:22 +12:00
JW Wang 144902b400 Bug 1295906 - Move |mVideoFrameContainer->ClearCurrentFrame()| out of MediaFormatReader::ReleaseResources(). r=jya
MozReview-Commit-ID: E0bm0zNoaZ7

--HG--
extra : rebase_source : bf9705ba84b99745adc91fae96495f1b13f4d5ea
2016-08-17 17:11:19 +08:00
JW Wang df3e437d3a Bug 1295893 - Add entry/exit actions to state transitions of MDSM. r=kaku
MozReview-Commit-ID: Ak17K7kEigC

--HG--
extra : rebase_source : fd1508b1ecb001ce88de45e8c6391d544bab5ca4
2016-08-12 16:06:30 +08:00
Jean-Yves Avenard e3d7cee89e Bug 1270016: P3. Only check audio format at decode time. r=kamidphish
With raw streaming flac, we can't determine the audio format at the time the codec is opened.
Additionally, when using streaming flac, we do not have a STREAMINFO block. The FFmpeg flac decoder check that extradata is null and not its size and would error due to an invalid extradata.

MozReview-Commit-ID: KZ3n8b8WUMo

--HG--
extra : rebase_source : a0dd8f517d730b1414c6461fc5c5e5b08d0d8b10
2016-08-16 16:21:18 +10:00
James Cheng 0c1650fb5a Bug 1291742 - Report MP4 videos with YUV444 format as unsupported. r=gerald
MozReview-Commit-ID: DxFfSIeYANR

--HG--
extra : rebase_source : b7a6097e7085bac23e02e7065165a024561a0316
2016-08-19 18:14:28 +08:00
Jean-Yves Avenard a18ecfafaa Bug 1280346: [mp4] Always use SPS dimensions if available. r=gerald,rillian
H264 decoders always use those anyway, so may as well use them in the demuxer if SPS NAL is available.
This guarantees that we have correct dimensions when reading the MP4 metadata, and will have the side benefit that when loadedmetadata is fired, the dimensions provided at the time will be final; not having to wait to decode the first frame.

MozReview-Commit-ID: 3j70Xqw8jJY

--HG--
extra : rebase_source : 6bc0f1fa1c2db35bcaa683cc1a68042d122e2892
2016-08-22 06:39:41 +10:00