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

3952 Коммитов

Автор SHA1 Сообщение Дата
Karl Tomlinson 9005394c64 bug 1190285 unvirtualize MediaStream::AdvanceTimeVaryingValuesToCurrentTime() r=roc
--HG--
extra : rebase_source : 6a1fad0a4db718ede4256b91689250ebbfa97cfa
2015-08-03 12:28:19 +12:00
Eugen Sawin b9e633ac47 Bug 1190558 - Add MP3 track demuxer seek tests. r=kinetik 2015-08-04 23:01:36 +02:00
Eugen Sawin 1c5bef0343 Bug 1190558 - Reset MP3 frame parser on track demuxer reset. r=kinetik 2015-08-04 23:01:36 +02:00
Bobby Holley b5a26b0b15 Bug 1190496 - Hoist SharedThreadPool into xpcom. r=froydnj
--HG--
rename : dom/media/SharedThreadPool.cpp => xpcom/threads/SharedThreadPool.cpp
rename : dom/media/SharedThreadPool.h => xpcom/threads/SharedThreadPool.h
2015-08-04 14:00:58 -07:00
Bobby Holley e7a16a397c Bug 1190496 - Init SharedThreadPool from XPCOM rather than MediaDecoder. r=froydnj 2015-08-04 14:00:52 -07:00
Bobby Holley 99f6b1c31c Bug 1190496 - Do shutdown on xpcom-shutdown-threads. r=cpearce
This happens after xpcom-shutdown, and is the notification we're supposed to
listen for to shutdown off-main-thread event queues.
2015-08-04 14:00:45 -07:00
Bobby Holley ba39c86b4e Bug 1190496 - Use the normal XPCOM way to dispatch to the main thread. r=cpearce 2015-08-04 14:00:39 -07:00
Bobby Holley 330f2a19c7 Bug 1190496 - Add a comment warning about MSCOM modes. r=cpearce 2015-08-04 14:00:30 -07:00
Bobby Holley c4645a718b Bug 1190496 - Namespace the SharedThreadPool.h include. r=cpearce 2015-08-04 14:00:25 -07:00
Bobby Holley de2bb0bad9 Bug 1190496 - Remove dependency on VideoUtils.h for stack size. r=cpearce 2015-08-04 14:00:19 -07:00
Chris Peterson 0fa33147de Bug 1190149 - Fix -Wformat NULL sentinel warning in GStreamerReader-0.10.cpp. r=edwin 2015-08-02 01:24:24 -07:00
Sotaro Ikeda d133f06440 Bug 1189206 - Remove worng mCurrentPosition update r=cpearce 2015-08-04 06:45:44 -07:00
Kelly Davis 60e71b20d8 Bug 1187791 - Part 1 of 1 - SpeechRecognition::maxAlternatives can't throw; so, rm webidl throws specifier. r=smaug
--HG--
extra : rebase_source : c0879a3ce21fbeb701aaa18c3ab82110cc53bce7
2015-08-04 00:39:00 +02:00
Makoto Kato 6da3448139 Bug 1190240 - Cannot compile WMFVideoMFTManager.cpp using Windows 10 SDK. r=cpearce 2015-08-04 16:03:50 +09:00
Karl Tomlinson d149f45532 bug 1189168 avoid main thread assertion accessing mNode in SizeOfIncludingThis() r=padenot
because the main thread is blocked during the call.

--HG--
extra : rebase_source : 5ab42bd4d8a14e66e34781456ad11c6b48dc6227
2015-07-31 12:49:07 +12:00
Karl Tomlinson a6f86056b9 bug 1190285 only update mStateComputedTime once per iteration r=padenot
UpdateStateComputedTime(GraphTime aStateComputedTime) occurs midway during
the iteration, so there is no need to update at the end.

--HG--
extra : rebase_source : 82a5fb08596d16ea1926725149b2688cfdf585ec
2015-07-29 16:58:59 +12:00
Karl Tomlinson db58db72fb bug 1190285 share ThreadedDriver interval update code r=padenot
--HG--
extra : rebase_source : bb977d7080dbb69d2c485efdf8148f8933f84b0c
2015-07-23 17:15:49 +12:00
Karl Tomlinson 4ca41a6841 bug 1190285 move GraphTime definition to avoid GraphDriver.h includes r=padenot
--HG--
extra : rebase_source : 18cc48140505eff426483c08c1dd4c9c3c0aa909
2015-07-23 11:48:47 +12:00
Karl Tomlinson 0c346a395e bug 1190285 move GetIntervalForIteration() from base class to ThreadedDriver, where it is used r=padenot
--HG--
extra : rebase_source : c34ce851b40d8057ff5ca97cdd5f6f703f8a2af0
2015-07-23 11:30:02 +12:00
Karl Tomlinson fdab75f3a4 bug 1190285 remove unused HaveEnoughBuffered r=padenot
--HG--
extra : rebase_source : 87bfcfb201f57e441adaefccf379c04cad0a2736
2015-07-31 18:54:05 +12:00
Karl Tomlinson 20bf85f5cd bug 1190285 remove unused DispatchWhenNotEnoughBuffered r=padenot
--HG--
extra : rebase_source : 68f91e0b11ecd0c70d6848c7a505b0208c885d0b
2015-07-31 18:46:04 +12:00
Karl Tomlinson 14f2250058 bug 1190285 remove unused GetCurrentTime() r=padenot
--HG--
extra : rebase_source : d976d69b6fd6d6584b6a43214b203608357c7c55
2015-07-23 17:31:32 +12:00
Jean-Yves Avenard 38f40fd819 Bug 1190019: [MSE] P2. Remove cycle between TrackBuffersManager and MediaSourceDemuxer. r=gerald 2015-08-04 16:19:15 +10:00
Jean-Yves Avenard 8905370e55 Bug 1190019: [MSE] P1. Remove cycle between SourceBuffer and TrackBuffersManager. r=cpearce
Instead we use a a ref-counted attribute holder to store those arguments.
2015-08-04 16:19:14 +10:00
Jean-Yves Avenard 7097957d08 Bug 1189776: Store our audio decode time in TimeUnits. r=cpearce
Decode time were stored in number of samples ; which could cause integer overflow when performing the conversion.
2015-08-04 16:19:14 +10:00
Nicholas Nethercote 1059c1de13 Bug 1189156 (part 2) - Don't use enumeration style for nsTHashtable::SizeOf{In,Ex}cludingThis(). r=erahm.
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)

And we still have the existing single-arg SizeOf{In,Ex}cluding() functions,
which work if the entry type itself defines SizeOfExcludingThis().

--HG--
extra : rebase_source : f93de9b789c21b1b148bed9de795f663f77c9dd9
2015-07-29 01:50:52 -07:00
Chris Pearce 6e943ecdb3 Bug 1190252 - Remove use of std::ifstream in GMPChild.cpp. r=edwin 2015-08-04 16:06:50 +12:00
Chris Pearce 65798c933d Bug 1190252 - Remove std::string from GMPChild and friends. r=edwin 2015-08-04 16:06:32 +12:00
Wes Kocher b822a1fdfc Backed out 6 changesets (bug 1061525) for mochitest-2 failures in test_BufferedSeek_mp4.html CLOSED TREE
Backed out changeset 5e90b9dab7fa (bug 1061525)
Backed out changeset ef5ce3d6412a (bug 1061525)
Backed out changeset 19c8682665a6 (bug 1061525)
Backed out changeset b48d13edb48d (bug 1061525)
Backed out changeset fae6602192a7 (bug 1061525)
Backed out changeset 5dfbd6e73c7a (bug 1061525)
2015-08-03 19:53:33 -07:00
Wes Kocher 0dde3fdf2e Backed out 2 changesets (bug 1190252) for windows gtest permafails
Backed out changeset 880fc4c49f7e (bug 1190252)
Backed out changeset ba77cb6046b7 (bug 1190252)
2015-08-03 16:00:53 -07:00
Matt Woodrow 0b5c881576 Bug 1061525 - Part 5: Make the OSX video decoders output NV12 format MacIOSurfaces. r=jya 2015-08-03 17:57:46 -04:00
Chris Pearce 6c02d1d89d Bug 1190252 - Remove use of std::ifstream in GMPChild.cpp. r=edwin 2015-08-04 09:07:19 +12:00
Chris Pearce 598bc62ffb Bug 1190252 - Remove std::string from GMPChild and friends. r=edwin 2015-08-04 09:07:02 +12:00
Jan-Ivar Bruaroey 0ccb51ddc8 Bug 1175523 - Update most (but not all) tests to use elem.srcObject over .mozSrcObject. r=pehrsons
--HG--
extra : rebase_source : bac0027f4bf5d75b8730c44a10141c114002633b
2015-07-14 10:12:31 -04:00
Kelly Davis efee22feb1 Bug 1177514 - Remove final text of 'ERROR' on recognition error, should be signaled by SpeechRecognitionError. r=smaug
--HG--
extra : rebase_source : 7a6e3541a694185b0c84ae48aed5901ff2198339
2015-07-28 02:53:00 -04:00
Kelly Davis d6c0476fde Bug 1185235 - Implement SpeechRecognition::maxAlternatives. r=smaug 2015-07-26 23:02:00 -04:00
Kelly Davis 27ccbe00c4 Bug 1185234 - Implement SpeechRecognition::interimResults. r=smaug 2015-08-02 22:20:00 -04:00
Kelly Davis 7f9de13c87 Bug 1185018 - Part 1 of 1 - Made speech recognition services language dependent and removed assumption of a single service. r=smaug 2015-08-02 13:43:00 +02:00
Makoto Kato 50e851b877 Bug 830801 - Part 2. Remove NOMINMAX define from moz.build. r=mshal 2015-08-03 10:07:09 +09:00
Karl Tomlinson 66f210c5b0 bug 1188704 remove now unused PerformInverseFFT() variation r=rillian
--HG--
extra : rebase_source : 13b3cfce3054fce463d0e2407bd48e343952830e
2015-07-30 12:51:48 +12:00
Karl Tomlinson a4757ceda3 bug 1188704 use existing FFTBlock arrays instead of allocating and copying and scaling r=rillian
It is now no longer necessary to clear zero bins because these are zeroed
in the FFTBlock constructor.

nsTArray bounds assertions now apply.

--HG--
extra : rebase_source : 18c07ecb51f9cb3c199536fe59110093db2295d4
2015-08-03 09:28:32 +12:00
Karl Tomlinson e8e61ee28e bug 1188704 add accessor functions for setting frequency components for inverse FFT r=rillian
--HG--
extra : rebase_source : cfd4b300d5437793dc60f4e0630fa393cc234b9d
2015-07-30 12:33:04 +12:00
Karl Tomlinson 6ca6918802 bug 1188704 combine scaling with copying r=rillian
--HG--
extra : rebase_source : f30aed44b66cca842a752a207ab9536e3cb395b2
2015-07-28 15:58:06 +12:00
Karl Tomlinson 893dc9cca8 bug 1188704 simplify culling of partials r=rillian
avoiding copying and scaling components that will be zeroed.

--HG--
extra : rebase_source : a649e78254296945d89f5e03dc75e6af753e56b4
2015-07-28 08:37:21 +12:00
Karl Tomlinson a4daa97373 bug 1188704 limit number of Fourier coefficients used to halfSize earlier r=rillian
realP[halfSize] was always set to zero because numberOfPartials < halfSize + 1
was always true.

--HG--
extra : rebase_source : 819b04a56032d810231a16fa0dd139cf82ef8ddf
2015-07-30 10:08:15 +12:00
Karl Tomlinson 0ffb72d8eb bug 1188704 trim unnecessary extra basic waveform coeffient r=rillian
The built-in waveforms are all odd and so realP[halfSize] was zero, and it
would have been ignored in createBandLimitedTables even if it was non-zero.
imagP[halfSize] was ignored as it was not involved in the inverse FFT.

This returns the code to that prior to
https://hg.mozilla.org/mozilla-central/diff/5377bce3b478/content/media/webaudio/blink/PeriodicWave.cpp#l1.276

--HG--
extra : rebase_source : 1bfa9eefc7dd269a64a98cdfdd4cbf76fa207dc4
2015-07-27 23:55:06 +12:00
Karl Tomlinson 0ebb28aa85 bug 1188704 redefine halfSize as fftSize / 2 r=rillian
There are no behavior changes here, just the change in meaning of the variable.

--HG--
extra : rebase_source : 9bae9f29a27430e9074dc0337773313140af9ba2
2015-07-27 22:41:31 +12:00
Jan Gerber 15e7adedaf Bug 1187247: [MSE] P2. Enable WebM in MediaSource. r=jya 2015-08-01 08:34:00 +10:00
Jan Gerber 2f85d4858f Bug 1187247: [MSE] P1. Continue parsing MediaSegment if buffer starts with SimpleBlock/Block. r=kinetik
Apply to WebM streams.
2015-08-01 08:33:59 +10:00
Ryan VanderMeulen 1b8b39ab09 Bug 909925 - Re-enable previously-disabled WebRTC crashtests on Android/B2G. 2015-07-31 14:44:37 -04:00
Boris Zbarsky 57621e1167 Bug 1135961. Implement subclassing of DOM objects. r=peterv 2015-07-31 13:30:55 -04:00
Carsten "Tomcat" Book 7005e3bf85 Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2015-07-31 13:50:49 +02:00
Carsten "Tomcat" Book 7b02077e1e merge mozilla-inbound to mozilla-central a=merge 2015-07-31 12:06:51 +02:00
Wes Kocher fde3090001 Backed out changeset b9cc2c3f8bda (bug 1187247) because the patch this depends on was backed out a=backout 2015-07-30 15:23:55 -07:00
Ryan VanderMeulen 7c486ed4c2 Merge inbound to m-c. a=merge 2015-07-30 16:08:21 -04:00
Ryan VanderMeulen 6153d67abe Merge m-c to b2g-inbound. a=merge
CLOSED TREE
2015-07-30 11:57:28 -04:00
JW Wang 17e42272cd Bug 1187817. Part 5 - assert some code in the audio thread and don't enter the monitor. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang 83eef13c75 Bug 1187817. Part 4 - move some code in Shutdown to the audio thread. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang df5724be40 Bug 1187817. Part 3 - move SetPlaying to the audio thread. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang 596da6e541 Bug 1187817. Part 2 - remove unused code. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang d247b81f2b Bug 1187817. Part 1 - Move Set{Volume,PlaybackRate,PreservesPitch} to the audio thread. r=kinetik. 2015-07-31 13:26:06 +08:00
Carsten "Tomcat" Book c1a0be69de Backed out changeset a093b996bafa (bug 1184867) for causing crashes @ mozilla::MediaSourceTrackDemuxer on a CLOSED TREE 2015-07-30 15:49:06 +02:00
Carsten "Tomcat" Book 516119753f Backed out changeset 4624de03e2e5 (bug 1184867) 2015-07-30 15:47:58 +02:00
Carsten "Tomcat" Book 9e504b2779 Backed out changeset 8b17cd283110 (bug 1184867) 2015-07-30 15:47:55 +02:00
Jean-Yves Avenard ceccac91fe Bug 1183196: [MSE] P3. Slightly increase debugging information. r=kentuckyfriedtakahe
Print the atom's offset, makes it easier to verify that byte ranges are properly calculated.
2015-07-30 20:42:45 +10:00
Jean-Yves Avenard fa6675ed02 Bug 1189138: [MSE] P3. Properly shift our demuxing index when data is added. r=gerald
Should frames be added before our current demuxing position, we must shift the index ; otherwise the next retrieved frames will be the wrong one.
2015-07-30 20:42:44 +10:00
Alfredo Yang 1885ed42a2 Bug 1189173 - Drop frames aggressively during internal seek. r=jya
--HG--
extra : rebase_source : 2db2cf4908c764df2273a0c6f2fb572a6310b0e8
2015-07-30 00:53:00 +02:00
Jean-Yves Avenard ec9948fb89 Bug 1189588: [MSE] Remove MediaSourceDemuxer::NotifyTimeRangesChanged. r=cpearce
This was an optimisation added to prevent recalculating our buffered ranges unnecessarily, but it became totally unnecessary with bug 1174981.
Additionally, it appears that there's a race in its use ; which I can't identify.
2015-07-31 14:26:17 +10:00
Eitan Isaacson f8946263f5 Bug 1187105 - Pause speechsynthesis on empty queue. r=smaug 2015-07-30 16:04:25 -07:00
Wes Kocher 68bcb02c04 Merge m-c to inbound, a=merge 2015-07-29 20:20:59 -07:00
Wes Kocher 1ca8b1de87 Merge b2ginbound to central, a=merge 2015-07-29 20:19:12 -07:00
Jessica Jong 11d3d9a5a3 Bug 1167132 - Part 15: [NetworkManager] Move network information into a separate interface (NetworkInterfaceList). r=echen 2015-07-29 02:16:00 -04:00
Matt Woodrow d2d5e5b9a3 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Wes Kocher ec1078c65a Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Benjamin Chen 79aedbb1cb Bug 1097498 - Wait fence for the graphic buffer. r=sotaro 2015-07-23 17:54:08 +08:00
Matt Woodrow 501c8bec02 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Jean-Yves Avenard 0e79a42d2e Bug 1185611: [MSE] P1. Remove whitelist. r=kinetik
We are now confident enough that MediaSource is usable by all
2015-07-31 20:09:26 +10:00
Jan Gerber 5248b69cfe Bug 1184867: [MSE] P3. Use WebMDemuxer in TrackBuffersManager. r=jya 2015-07-31 16:16:59 +10:00
Jan Gerber 50206409c0 Bug 1184867: [MSE] P2. Update WebMContainerParser to be compatible with new MSE. r=kinetik 2015-07-31 16:11:09 +10:00
Jan Gerber 87b289a2be Bug 1184867: [vp9] P1. VPXDecoder pass DTS to VideoData::Create. r=jya 2015-07-31 16:10:57 +10:00
Jean-Yves Avenard 179ab5ffb6 Bug 1189602: [MSE] Always notify demuxer when data is added (or removed) to the resource. r=gerald 2015-07-31 16:10:42 +10:00
Ryan VanderMeulen 4bd08c521b Merge m-c to inbound. a=merge 2015-07-30 16:09:17 -04:00
Ralph Giles c2402aa578 Bug 1188150 - ADTSContainerParser gtest. r=jya
Ran an m4a file from magnatune through ffmpeg -acopy foo.aac
to convert to adts, and pulled the first header out of the
hexdump.

- Test rejection of non-zero layer fields.
- Test rejecting explicit frequency in headers.
- Test rejection of plain headers as media segments.
2015-07-30 13:05:50 -07:00
Ralph Giles e36f86f767 Bug 1188150 - Instantiate ADTSContainerParser for audio/aac. r=jya 2015-07-30 13:05:49 -07:00
Ralph Giles 52b333ce9e Bug 1188150 - ADTSContainerParser. r=jya
Parse an ADTS header and use it to recognize MSE
'initialization segments' i.e. those with a header.
For 'media segments' we look for a header followed
by the declared amount of data.

The implementation treats 'media headers' the same
as 'media segments'.

ADTS has no embedded timestamps, so we don't need
to do anything there; the demuxer will generate
them based on packet lengths.
2015-07-30 13:05:48 -07:00
Ralph Giles 39ef04f2fd Bug 1188150 - Move ContainerParser dtor to implementation. r=jya
This blocks inlining so callers don't have to include
SourceBufferResource.h &c. Intended to simplify unit tests.
2015-07-30 13:05:48 -07:00
Carsten "Tomcat" Book fbe5e8ab67 Backed out changeset ca2c0a7b3b3b (bug 1189138) for causing timeouts in test_BufferingWait_mp4.html on a CLOSED TREE 2015-07-30 10:18:17 +02:00
Brendan Long 8be4518086 Bug 909993 - Add WebIDL for TextTrackCue and fix link in VTTCue.webidl. r=rillian r=bz 2015-07-29 12:41:00 +02:00
Jan Gerber 95a2af0262 Bug 1187247: [MSE] Enable WebM in MediaSource. r=jya
https://bugzilla.mozilla.org/show_bug.cgi?id=1187247
2015-07-30 16:56:22 +10:00
Jan Gerber 8df6b30ffe Bug 1184867: [MSE] P3. Use WebMDemuxer in TrackBuffersManager. r=jya 2015-07-30 16:56:21 +10:00
Jan Gerber d65404b8ba Bug 1184867: [MSE] P2. Update WebMContainerParser to be compatible with new MSE. r=kinetik 2015-07-30 16:56:20 +10:00
Jan Gerber 8006fc4e40 Bug 1184867: [vp9] P1. VPXDecoder pass DTS to VideoData::Create. r=jya 2015-07-30 16:56:20 +10:00
Jan Gerber 9d8d3579f0 Bug 1188341: [MSE] Add Test for multiple init segments in MSE appendBuffer. r=jya 2015-07-30 16:56:19 +10:00
Nicholas Nethercote 87b80f8c66 Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.

And do likewise for nsTObserverArray.

--HG--
extra : rebase_source : 6a8c8d8ffb53ad51b5773afea77126cdd767f149
2015-07-28 23:24:24 -07:00
Jean-Yves Avenard bdf2f8bda7 Bug 1183196: [MSE] P1. Do not overwrite stored init data until known as valid. r=gerald 2015-07-30 15:20:49 +10:00
Jean-Yves Avenard 02c530d98b Bug 1189138: [MSE] P4. Tell the mediasource demuxer of modified range as early as possible. r=gerald
We would only tell our demuxer once a complete media segment had been received.
A partial media append would have unnecessarily delayed pending seeks.
2015-07-30 15:20:43 +10:00
Jean-Yves Avenard 625eecf933 Bug 1189138: [MSE] P3. Properly shift our demuxing index when data is added. r=gerald
Should frames be added before our current demuxing position, we must shift the index ; otherwise the next retrieved frames will be the wrong one.
2015-07-30 15:20:38 +10:00
Jean-Yves Avenard 024aff6746 Bug 1189138: P2. Add useful debugging information to logs. r=cpearce 2015-07-30 15:20:19 +10:00
Jean-Yves Avenard fa43517ced Bug 1189138: [MSE] P1. Only seek to a position if the trackbuffer contains it. r=cpearce
Ignoring the time if it was 0 was a remnant on when Reset() used to call seek and meant to get to the first frame available.
This is no longer relevant, DoSeek is only called when we are explicitly seeking.
2015-07-30 15:20:07 +10:00
Jan Gerber bc5430d2fd Bug 1185792: [webm] P1. Don't clear mNeedReIndex if GetCachedRanges is emtpy. r=jya 2015-07-30 15:10:05 +10:00
Bobby Holley 97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Jean-Yves Avenard da1dc17345 Bug 1188804: [MSE] P2. Disambiguate naming of mActiveTrack boolean. r=gerald
We considered that mActiveTrack was a global variable, however it is reset each time a new init segment is received.
Should two init segments be received in the same appendBuffer it would have been set to false, causing metadata to never be parsed.
2015-07-29 20:31:19 +10:00
Jean-Yves Avenard efa5417b43 Bug 1188804: [MSE] P1. Fix Is*SegmentPresent. r=kentuckyfriedtakahe
The name IsInitSegmentPresent and IsMediaSegmentPresent was misleading. As they are to return true only if data *starts* with such segment and not just contain.
2015-07-29 20:31:18 +10:00
Jacek Caban 57615ea370 Bug 1188457 - Fixed SapiService.cpp compilation on mingw. r=jimm 2015-07-29 12:27:22 +02:00
Jacek Caban 403c515868 Bug 1188439 - Fixed GMPLoader.cpp compilation with sandbox disabled. r=cpearce 2015-07-29 12:27:07 +02:00
Jean-Yves Avenard 06fb245e8f Bug 1188758: [MSE] Only use init segment if known to be valid. r=gerald 2015-07-29 19:04:40 +10:00
Jean-Yves Avenard d3d8a943a0 Bug 1188210: [MSE] Add mochitest to ensure transition from WAITING to ENDED. r=cpearce 2015-07-29 19:04:39 +10:00
Karl Tomlinson 9b788b694b backout 9a8104912ebe for application timeout on B2G ICS emulator. bug 999376 2015-07-29 13:48:57 +12:00
Holger Fuhrmannek ext:(%20and%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E) 2acaa47690 test for bug 999376
--HG--
extra : rebase_source : 9500d51dfb87570eb7b05435c436c65bc00f5a5c
2015-07-28 17:26:17 +12:00
Karl Tomlinson 8b0dccbf5a bug 1188244 throw in SetCurve() on OOM r=padenot
--HG--
extra : rebase_source : 8b8709fb2bb1765eca65248437a9d58232c34fdb
2015-07-27 21:19:27 +12:00
Holger Fuhrmannek ext:(%20and%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E) 1ef4015e39 test for bug 995289
--HG--
extra : rebase_source : c80e5ef38107e2a26a6606f8e86cb4f26db208d1
2015-07-28 08:47:25 +12:00
Karl Tomlinson a905a14a19 bug 1187785 reverse tableInterpolationFactor to make it consistent with documentation r=rillian
tableInterpolationFactor = 0 now means use lowerWaveData, which is
rangeIndex2.

--HG--
extra : rebase_source : a8e1b64c534cf2e9aea92dd8a06a4eeee8403d73
2015-07-27 16:59:17 +12:00
Karl Tomlinson 8fa05ce9cd bug 1187785 test periodic wave band limiting
--HG--
extra : rebase_source : 4124c181cbf5eb46e5c4067faf5298947ebcfb33
2015-07-29 11:57:56 +12:00
Wes Kocher 9605f639cb Backed out changeset 3fa834e98383 (bug 909993) for interfaces.html failures CLOSED TREE 2015-07-28 15:28:56 -07:00
Brendan Long 51531f7252 Bug 909993 - Add WebIDL for TextTrackCue and fix link in VTTCue.webidl. r=rillian,bz 2015-07-24 17:11:00 -07:00
Drew Willcoxon e004f2a723 Bug 1183044 - Properly mute AudioContext when there's an attempt to mute it before it has a destination. r=ehsan 2015-07-28 12:34:33 -07:00
Ryan VanderMeulen 4091b5d747 Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-28 15:00:20 -04:00
Ryan VanderMeulen b04aa975be Backed out 5 changesets (bug 1187817) for making test_mediatrack_consuming_mediaresource.html extremely failure-prone on B2G. a=me
Backed out changeset ae2e2dda1eec (bug 1187817)
Backed out changeset 74386997e5fb (bug 1187817)
Backed out changeset d31a0c93969f (bug 1187817)
Backed out changeset cf38bd59eb44 (bug 1187817)
Backed out changeset 264dad192c22 (bug 1187817)
2015-07-28 14:36:49 -04:00
Jean-Yves Avenard b29bbb6f28 Bug 1188233: Ensure drainComplete flag is set upon failure to create decoder. r=cpearce 2015-07-28 23:28:24 +10:00
JW Wang 22c6800f16 Bug 1187817. Part 5 - assert some code in the audio thread and don't enter the monitor. r=kinetik. 2015-07-28 20:21:27 +08:00
JW Wang cd7d8ab800 Bug 1187817. Part 4 - move some code in Shutdown to the audio thread. r=kinetik. 2015-07-28 20:21:27 +08:00
JW Wang 439dfec51d Bug 1187817. Part 3 - move SetPlaying to the audio thread. r=kinetik. 2015-07-28 20:21:26 +08:00
JW Wang 494bca7d4f Bug 1187817. Part 2 - remove unused code. r=kinetik. 2015-07-28 20:21:26 +08:00
JW Wang ae47236478 Bug 1187817. Part 1 - Move Set{Volume,PlaybackRate,PreservesPitch} to the audio thread. r=kinetik. 2015-07-28 20:21:26 +08:00
Jean-Yves Avenard c203925f63 Revert "Bug 1188233: Ensure drainComplete flag is set upon failure to create decoder. r=cpearce"
This reverts commit 9c48bac3e0d3
2015-07-28 16:37:53 +10:00
Jean-Yves Avenard c7b835ce08 Bug 1188233: Ensure drainComplete flag is set upon failure to create decoder. r=cpearce 2015-07-28 14:23:29 +10:00
Jean-Yves Avenard bec365db4b Bug 1188220: Allow disabling HW acceleration even when SharedDecoderManager isn't used. r=cpearce
The SharedDecoderManager is being obsoleted.
2015-07-28 14:11:06 +10:00
Jean-Yves Avenard ce730a7b65 Bug 1185972: P5. Add mochitest testing new seek behaviour. r=jwwang
Test ensures that seeking starts right after metadata is processed if we have a known start time.
2015-07-28 14:11:05 +10:00
Jean-Yves Avenard c7de70dda7 Bug 1186149: P2. Relax timestamp rules in debug mode. r=gerald
Some not quite so correctly muxed files shows the first few samples as all having a decode timestamp of 0.
2015-07-28 14:11:04 +10:00
JW Wang 2007d5e43f Bug 1187763. Part 3 - refactor AudioSink::AudioLoop into a series of events. r=kinetik. 2015-07-28 11:52:05 +08:00
JW Wang 206b3c3f1e Bug 1187763. Part 2 - extract some code of AudioLoop() into its own function. r=kinetik. 2015-07-28 11:49:59 +08:00
JW Wang c93e4dca6f Bug 1187763. Part 1 - move while loop out of WaitingForAudioToPlay(). r=kinetik. 2015-07-28 11:49:42 +08:00
Holger Fuhrmannek ext:(%20and%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E) 2aad1beb5d test for bug 1045650
--HG--
extra : rebase_source : f972477172b2c100e6a4506d323c6ae8a290e496
2015-07-27 18:12:04 +12:00
Atte Kettunen ext:(%20and%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E) 86da475e86 test for bug 1041466
--HG--
extra : rebase_source : 0e72d65ce24a25ca3c5935163ebf03cc06deec79
2015-07-27 17:50:30 +12:00
Karl Tomlinson e040fd3850 test for bug 1020205
--HG--
extra : rebase_source : 607f8ae62490379c9ce02e2c4fa045b8bc2ff139
2015-07-27 17:31:49 +12:00
Holger Fuhrmannek ext:(%20and%20Paul%20Adenot%20%3Cpaul%40paul.cx%3E) 63ad946e5b test for bug 1012609 r=karlt
--HG--
extra : rebase_source : b0ee860f5da05b6af0bcfa797d5b470664775d74
2015-07-27 17:27:19 +12:00
Karl Tomlinson a6cc0725e8 bug 1186781 skip reallocation when audio block is not shared r=padenot
--HG--
extra : rebase_source : d470e7d14716606bf97b06be05637441b4d2a9ef
2015-07-22 18:51:11 +12:00
Karl Tomlinson 639872f1ff bug 1186779 use ChannelFloatsForWrite() instead of const_cast r=padenot
--HG--
extra : rebase_source : 324b2fbf4addbac848b7a74b048d67ba7c461b0c
2015-07-22 17:59:21 +12:00
Karl Tomlinson 63508ac5a4 bug 1186779 add a method to cast AudioChunk data for writing when not shared r=padenot
--HG--
extra : rebase_source : 3c86cdf69877e4e13a2e7b3c208c2ccb3107390f
2015-07-22 18:43:30 +12:00
Karl Tomlinson e33037127f bug 1184801 process AnalyserNode input only when required r=padenot
This moves the application of volume and averaging of channels to the main
thread, performed when required.  It avoids a potential allocation on the
graph thread.  If doing a full analysis for frequency data, the extra work on
the main thread should be negligible.  I assume that repeatedly fetching the
same time domain data with getFloatFrequencyData() is not something we need to
optimize for.  If, in rare circumstances, the extra main thread work turns out
to be significant, then the main thread work in getters is self-regulating,
but too much load on the graph thread leads to catastrophic failure in the
audio.

This also fixes some bugs:

Input and output streams for other consumers are not corrupted by in-place
scaling of data intended to be read-only.

When there are additional channels and fftSize < WEBAUDIO_BLOCK_SIZE, the
channels are not written past the current length of a buffer, so there is no
longer a dependency on nsTArray's behavior of never not reducing allocation
size on length changes.

The most recent fftSize samples are now used even when fftSize <
WEBAUDIO_BLOCK_SIZE, instead of the first fftSize samples in the most recent
block.

Enough time domain data is recorded so that getters will work immediately
following a change in fftSize.

--HG--
extra : rebase_source : bbd8a3e705d73781bb838a47261bf7d60cd1a9a7
2015-07-22 19:50:37 +12:00
Karl Tomlinson 1d1c742d3b bug 1184801 crashtest for AnalyserNode with channels and small fftSize
--HG--
extra : rebase_source : 6a85e33b768c37df44cc7eb3229fc716b3d11d10
2015-07-21 15:21:38 +12:00
Karl Tomlinson 15660ce0a3 bug 1184801 Test effect of AnalyserNode on GainNode output
--HG--
extra : rebase_source : 76315743a411d75937dfa85ecfaddce66864bd87
2015-07-17 13:24:54 +12:00
Paul Adenot 07eebce9da Bug 1156472 - Part 15 - Disable the test on emulator because it's too slow. 2015-07-27 16:19:54 +02:00
Paul Adenot 69bc05b20d Bug 1156472 - Part 13 - Make necessary adjustments for integer audio. r=jesup 2015-07-24 14:28:17 +02:00
Paul Adenot d4057fe585 Bug 1156472 - Part 12 - Allow to pipe the AudioCaptureStream into an AudioContext. r=mt,roc 2015-07-24 14:28:17 +02:00
Paul Adenot da9b49eced Bug 1156472 - Part 11 - Unbitrot MediaManager.cpp over jib's changes. r=jib 2015-07-24 14:28:17 +02:00
Paul Adenot ba5297b5a3 Bug 1156472 - Part 10 - Test AudioCaptureStream. r=pehrsons 2015-07-24 14:28:17 +02:00
Paul Adenot 1b28a4b659 Bug 1156472 - Part 8 - Use fatal asserts in AudioChannelUpmix, because it would have crashed anyways. r=roc 2015-07-24 14:28:17 +02:00
Paul Adenot f7bb3fd5bd Bug 1156472 - Part 7 - Allow to un-capture an HTMLMediaElement. r=pehrsons,jwwang 2015-07-24 14:28:17 +02:00
Paul Adenot 2ab300ac7b Bug 1156472 - Part 6 - Connect HTMLMediaElement and AudioContext to the capture stream when capturing is needed. r=roc 2015-07-24 14:28:17 +02:00
Paul Adenot 6f08789e18 Bug 1156472 - Part 5 - Add MediaEngineWebRTCAudioCaptureSource as a new audio source, and "audioCapture" as a new MediaSource. r=jesup,bz 2015-07-24 14:28:16 +02:00
Paul Adenot d95134e72e Bug 1156472 - Part 4 - Add a new MediaStreamGraph API to connect a MediaStream to a capture stream. r=jesup,roc 2015-07-24 14:28:16 +02:00
Paul Adenot b621a51a60 Bug 1156472 - Part 3 - Implement AudioCaptureStream. r=roc
It is a ProcessMediaStream that simply mixes its inputs into a mono stream,
up/down mixing appropriately.
2015-07-24 14:28:16 +02:00
Paul Adenot 6c2138c080 Bug 1156472 - Part 2 - Rename MediaEngineWebRTCAudioSource to MediaEngineWebRTCMicrophoneSource. r=jesup
There are now two different possible audio source, so this was getting confusing.
2015-07-24 14:28:16 +02:00
Paul Adenot 6187533e7d Bug 1156472 - Part 1 - Allow to capture all HTMLMediaElements and AudioContexts for a document. r=baku,padenot
This is built on top of the AudioChannel infrastructure. This patch does not
actually implement the capture, it just does the plumbing to be able to notify
all HTMLMediaElement/AudioContext for a document.
2015-07-09 16:40:08 +02:00
Carsten "Tomcat" Book c6c40b4b8f Backed out changeset d9ad5b9c6324 (bug 1185972) for timeouts on 10.6 in test_SeekNoData_mp4.html 2015-07-27 13:15:43 +02:00
Kilik Kuo a3e974ad80 Bug 1186367 - Make MDSM more ignorant of AudioData/VideoData via using MediaQueue<MediaData> instead. r=jwwang 2015-07-28 00:21:33 +08:00
Benjamin Chen 69e26539a4 Bug 1186752 - Remove ScheduleStateMachine() in MediaDecoder.cpp since we have state mirror. r=jwwang 2015-07-23 18:39:09 +08:00
Jean-Yves Avenard 8d428f4bec Bug 1185972: P6. Ensure exiting dormant mode has completed seek before notifying decoder. r=jwwang 2015-07-27 14:52:40 +10:00
Jean-Yves Avenard fa397ab3b4 Bug 1185972: P5. Add mochitest testing new seek behaviour. r=jwwang
Test ensures that seeking starts right after metadata is processed if we have a known start time.
2015-07-27 14:52:35 +10:00
Jean-Yves Avenard c5999c60f3 Bug 1185972: P4. Initiate seek as early as conditions permit. r=jwwang
We can initiate a seek as soon as we have a start time and metadata have been read.
However, only enable this feature for MSE as some tests expect events in a specific order.
2015-07-27 14:52:30 +10:00
Jean-Yves Avenard 797031e88a Bug 1185972: P3. Don't reduce our buffer threshold coming out of dormant mode. r=jwwang
Each time we would come out of dormant mode, the buffer threshold for audio-only stream would be reduced.
2015-07-27 14:52:25 +10:00
Jean-Yves Avenard b7937eabbd Bug 1185972: P2. Refactor handling of first frame decoded. r=jwwang 2015-07-27 14:52:20 +10:00
Jean-Yves Avenard afb92e8070 Bug 1185972: P1. Remove DECODER_STATE_DECODING_FIRSTFRAME state. r=jwwang
We want to be able to process the steps following decoding of the first frame
independent of a state.
2015-07-27 14:52:16 +10:00
Jean-Yves Avenard 0259a11e37 Bug 1185886: P2. Don't unnecessarily drain decoders when there's no frames pending. r=cpearce 2015-07-27 14:52:11 +10:00
Jean-Yves Avenard 906996fe29 Bug 1185886: P1. Ensure DrainComplete() is called when draining. r=cpearce
If no samples were ever passed to the H264 wrapper, no decoder would have been created.
2015-07-27 14:52:06 +10:00
Makoto Kato 4b4ac7d1cb Bug 1187155 - Remove sphelper.h dependency to avoid ATL. r=jimm 2015-07-27 12:34:27 +09:00
Chris Pearce e220da3249 Bug 1187113 - Add more logging around EME promise rejects and method calls that often fail. r=edwin 2015-07-27 11:52:19 +12:00
Chris Pearce 2fa9d4ad30 Bug 1187163 - Ensure we send Reset/Drain complete notifications no matter what happens in GMP{Audio,Video}Decoder. r=gerald 2015-07-27 11:52:16 +12:00
Wes Kocher c835884065 Merge b2ginbound to central, a=merge 2015-07-24 13:47:05 -07:00
Carsten "Tomcat" Book 2b73aa4f63 Backed out 14 changesets (bug 1156472) for bustage on a CLOSED TREE
Backed out changeset 2ddbf85a42c0 (bug 1156472)
Backed out changeset 306d02e17081 (bug 1156472)
Backed out changeset 03598139f39a (bug 1156472)
Backed out changeset 4b1e6069b598 (bug 1156472)
Backed out changeset 6c588a5eaaec (bug 1156472)
Backed out changeset 8c98d7beaea7 (bug 1156472)
Backed out changeset fbf59fbb5875 (bug 1156472)
Backed out changeset 66479dd9eed9 (bug 1156472)
Backed out changeset c8502deeed33 (bug 1156472)
Backed out changeset 1a60ff1149a1 (bug 1156472)
Backed out changeset af1638279785 (bug 1156472)
Backed out changeset 8210276a98ca (bug 1156472)
Backed out changeset 13730e7c5997 (bug 1156472)
Backed out changeset 05acb71cf981 (bug 1156472)
2015-07-24 17:08:37 +02:00
Carsten "Tomcat" Book 1225980bea Backed out changeset c17987dfa969 (bug 1129882) 2015-07-24 16:30:31 +02:00
Carsten "Tomcat" Book 7cdb62ba5f Backed out changeset 3620404c8725 (bug 1129882) 2015-07-24 16:30:26 +02:00
Paul Adenot 90a222f71a Bug 1156472 - Part 13 - Make necessary adjustments for integer audio. r=jesup 2015-07-24 14:28:17 +02:00
Paul Adenot 67ca74db0b Bug 1156472 - Part 12 - Allow to pipe the AudioCaptureStream into an AudioContext. r=mt,roc 2015-07-24 14:28:17 +02:00
Paul Adenot 7872410708 Bug 1156472 - Part 11 - Unbitrot MediaManager.cpp over jib's changes. r=jib 2015-07-24 14:28:17 +02:00
Paul Adenot e45365d260 Bug 1156472 - Part 10 - Test AudioCaptureStream. r=pehrsons 2015-07-24 14:28:17 +02:00
Paul Adenot 5ed058488a Bug 1156472 - Part 8 - Use fatal asserts in AudioChannelUpmix, because it would have crashed anyways. r=roc 2015-07-24 14:28:17 +02:00
Paul Adenot 27a91916bf Bug 1156472 - Part 7 - Allow to un-capture an HTMLMediaElement. r=pehrsons,jwwang 2015-07-24 14:28:17 +02:00
Paul Adenot c1a9ba0ab9 Bug 1156472 - Part 6 - Connect HTMLMediaElement and AudioContext to the capture stream when capturing is needed. r=roc 2015-07-24 14:28:17 +02:00
Paul Adenot e1e882cb56 Bug 1156472 - Part 5 - Add MediaEngineWebRTCAudioCaptureSource as a new audio source, and "audioCapture" as a new MediaSource. r=jesup,bz 2015-07-24 14:28:16 +02:00
Paul Adenot 4bc48d0134 Bug 1156472 - Part 4 - Add a new MediaStreamGraph API to connect a MediaStream to a capture stream. r=jesup,roc 2015-07-24 14:28:16 +02:00
Paul Adenot 4eb22368c8 Bug 1156472 - Part 3 - Implement AudioCaptureStream. r=roc
It is a ProcessMediaStream that simply mixes its inputs into a mono stream,
up/down mixing appropriately.
2015-07-24 14:28:16 +02:00
Paul Adenot f6609f50c3 Bug 1156472 - Part 2 - Rename MediaEngineWebRTCAudioSource to MediaEngineWebRTCMicrophoneSource. r=jesup
There are now two different possible audio source, so this was getting confusing.
2015-07-24 14:28:16 +02:00
Alastor Wu 2b0990fe9b Bug 1129882 - only send mozinterrupt when interrupt happens. r=baku. 2015-07-24 17:36:34 +08:00
Paul Adenot bae1e652bf Bug 1156472 - Part 1 - Allow to capture all HTMLMediaElements and AudioContexts for a document. r=baku,padenot
This is built on top of the AudioChannel infrastructure. This patch does not
actually implement the capture, it just does the plumbing to be able to notify
all HTMLMediaElement/AudioContext for a document.
2015-07-09 16:40:08 +02:00
Gerald Squelart dc0830276f Bug 1187193 - Use UserData() instead of Data() in ConstIter loops that used to be EnumerateRead's. r=njn
--HG--
extra : rebase_source : db4109bfb53210a8b228c7e91427a636e2b5ea32
2015-07-24 02:25:00 +02:00
Paul Adenot 0788bfab9c Bug 1185192 - Make promise resolving sequentially consistent when switching graph driver and closing a graph during the same iteration. r=roc 2015-07-24 15:09:21 +02:00
Paul Adenot 6175cb8a69 Bug 1185176 - Account for the fact that it is possible for nodes to not have streams. r=karlt
We can now destroy a stream earlier than the node for performance reasons.
2015-07-24 15:09:19 +02:00
Paul Adenot b4774f9ee5 Bug 1185176 - Crashtest. r=karlt 2015-07-24 15:09:18 +02:00
Jean-Yves Avenard d614b68bdf Bug 1183888: Report empty buffered ranges unless we have a start time. r=bholley 2015-07-24 23:02:20 +10:00
Jan-Ivar Bruaroey 3544a8c613 Bug 1186142 - Make selector arg optional on PeerConnection.getStats(). r=bz
--HG--
extra : transplant_source : %D9Y%3EecN%F2AJ%01%0A%D6%188.p%11%9C%29%C9
2015-07-21 16:36:10 -04:00
Kilik Kuo bf15291935 Bug 1186375 - Add GMP EME render flags and APIs for query. r=cpearce 2015-07-22 19:07:14 +08:00
Benjamin Chen 176076ffd3 Bug 1064535 - fix testcase: 1. Relax the number of ondataavailble checking. 2. Don't check the mimetype of empty blob. r=jwwang 2015-07-22 18:51:47 +08:00
JW Wang 6417ed4d21 Bug 1186801 - Remove decoder monitor from AudioSink. r=kinetik. 2015-07-24 14:24:42 +08:00
Alastor Wu 9401ab6f5a Bug 1129882 - add mozInterrupt in telephony object. r=baku 2015-03-26 15:32:43 +08:00
Jessica Jong 27fcd2e6a8 Bug 1185802 - Part 3: support fota apn type (tests). r=hsinyi
--HG--
extra : commitid : 5cipjsXtfQG
2015-07-24 10:41:29 +08:00
Alastor Wu a5596f5a1e Bug 1142933 - New audio channel type for system usages. r=baku
--HG--
extra : histedit_source : e60291f5b488d9e004698a6336456c80200751ab
2015-03-16 12:01:50 +08:00
Benjamin Chen 3dc8ab47ea Bug 1183394 - Remove the assertion message when shutdown. r=jwwang 2015-07-21 18:01:00 +08:00
Jan-Ivar Bruaroey c76b35c716 Bug 1186209 - Check for VTYPE_EMPTY_ARRAY in enumerateDevices + test. r=jesup
--HG--
extra : transplant_source : %A7%B5%7D%3FM%A1%0A%5C7%853%A1%F4%DB%220cU7%C7
2015-07-22 13:04:12 -04:00
Jan-Ivar Bruaroey 39499d18e0 Bug 1186708 - Fix debug-only assert (crash) on advanced browserWindow constraint. r=jesup
--HG--
extra : transplant_source : %CD%E7%89%1CA%86%FC%10q%F3%89%F1%16%7DE%AF5f%7B%C8
2015-07-23 00:44:52 -04:00
Jan-Ivar Bruaroey 99483c3f4a Bug 1186198 - s/unexpected/unanticipated/. r=drno
--HG--
extra : transplant_source : d%C7%0CML%27l%A9q%29%A0%13%8Bf%05H%8C%9A%B7%03
2015-07-21 17:13:20 -04:00
JW Wang 558f24621a Bug 1186358. Part 2 - remove unnecessary/insufficient includes. r=kinetik. 2015-07-23 19:58:30 +08:00
JW Wang 5e7af1298a Bug 1186358. Part 1 - Remove dependency on MediaDecoderStateMachine from AudioSink. r=kinetik. 2015-07-23 19:57:58 +08:00
Makoto Kato 3d5598225f Bug 1003457 - Implement Windows SAPI backend. Original patch is by yash.girhar@gmail.com. r=jmathies 2015-07-23 17:16:25 -07:00
JW Wang 471bfe30cd Bug 1184874. Part 3 - call mDecoder->UpdatePlaybackOffset in On{Audio,Video}Popped and remove MediaDecoderStateMachine::DispatchOnPlaybackOffsetUpdate. r=cpearce. 2015-07-23 14:14:16 +08:00
JW Wang 71a3144556 Bug 1184874. Part 2 - add the ability to know which item is popped from the MediaQueue. r=cpearce. 2015-07-23 14:12:28 +08:00
JW Wang 292f369434 Bug 1184874. Part 1 - fix indentation. r=cpearce. 2015-07-23 14:12:00 +08:00
Ralph Giles f104891fe4 Bug 1186257 - Avoid 'using' namespace imports in headers. r=jya
This is poor style as it can have side-effects in the caller's
code. Instead, use full namespace prefixes.
2015-07-22 16:59:27 -07:00
Ralph Giles 31d84bc29e Bug 1186257 - Add missing mediasource includes. r=jya
Add missing includes, forward declarations, and fix up
namespace references so dom/media/mediasource compiles
in a non-unified build.

The header side at least is important for writing unit tests.
2015-07-22 16:59:25 -07:00
Ralph Giles 1f15cff72d Bug 1186257 - Use default dtor in ContainerParser. r=jya
This fixes a non-unified build error. Defining and empty
dtor allows callers to inline (if they can prove it's not
a pointer to a derived class?) the dtor, but means the compiler
needs access to the details on the member variable wrapped
in smart pointers so it can call there dtors in turn.

I think marking it default instead of empty in the header
moves generation to the class implementation, which does
include SourceBufferResource.h.
2015-07-22 16:59:23 -07:00
Ralph Giles c9712d45cf Bug 1186257 - Fix formatting. r=jya 2015-07-22 16:58:39 -07:00
Benjamin Bouvier 676d79811c Bug 1186343: Throw an InvalidStateError when we set the curve attribute of a WaveShaperNode with a Float32Array of length less than 2; r=padenot,smaug
--HG--
rename : dom/media/webaudio/test/test_waveShaperZeroLengthCurve.html => dom/media/webaudio/test/test_waveShaperInvalidLengthCurve.html
extra : commitid : 6mncD6YlIar
extra : rebase_source : 2522698bcb1e1dcdb4047d8c5ab61f6caba8875e
extra : amend_source : 21cdb3f06b100a5b3a078dbc38ffeecedc675bae
2015-07-22 13:32:12 +02:00
JW Wang e025bd63c4 Bug 1185892. Part 3 - replace all calls to MediaDecoder::IsExpectingMoreData() with MediaResource::IsExpectingMoreData. r=jya. 2015-07-22 20:58:00 +08:00
JW Wang cc8b7e3ce1 Bug 1185892. Part 2 - delegate the job of MediaDecoder::IsExpectingMoreData to its MediaResource. r=jya. 2015-07-22 20:57:41 +08:00
JW Wang 996ebfa0c1 Bug 1185892. Part 1 - delegate the job of MediaSourceDecoder::IsExpectingMoreData to its MediaResource. r=jya. 2015-07-22 20:57:09 +08:00
JW Wang 6e296d2756 Bug 1186299 - Consolidate AudioSink::PrepareToShutdown and AudioSink::Shutdown into one function. r=kinetik. 2015-07-22 18:52:13 +08:00
Bob Owen f78a41b060 Bug 1185171: Add 0xc02625e5 as a valid failure code for GMPOutputProtection test. r=cpearce 2015-07-22 09:29:52 +01:00
Jean-Yves Avenard 8204ebce53 Bug 1184826: P1. Mark MPEG-2 AAC as supported. r=cpearce 2015-07-22 14:22:53 +10:00
Jean-Yves Avenard 97f322485c Bug 1165772: P2. Properly reports if mimetype is supported in mediasource. r=kentuckyfriedtakahe 2015-07-22 14:22:51 +10:00
Jean-Yves Avenard cfc9c86adc Bug 1165772: P1. Refactor DecoderTraits::CanHandleMediaType. r=kentuckyfriedtakahe 2015-07-22 14:22:51 +10:00
Jean-Yves Avenard 831b3f9fbd Bug 1185814: Disable EME tests on 10.6. r=cpearce 2015-07-22 14:22:50 +10:00
Jean-Yves Avenard 88a0955b91 Bug 1182945: P1. Disable webm mediasource mochitests. r=kentuckyfriedtakahe 2015-07-22 14:22:46 +10:00
Jean-Yves Avenard f77f5f6283 Bug 1185431: Immediately resolve WaitingForDataPromise if we're not waiting for data. r=cpearce 2015-07-22 14:22:46 +10:00
JW Wang 252412fa5d Bug 1185416 - Don't stop AudioSink prematurely when decoding is completed. r=kinetik. 2015-07-19 21:25:02 +08:00
JW Wang 3bf1d08319 Bug 1185407. Part 3 - don't shutdown AudioStream prematurely. r=kinetik. 2015-07-22 09:54:15 +08:00
JW Wang b26158dcc9 Bug 1185407. Part 2 - remove unused code. r=kinetik. 2015-07-22 09:54:13 +08:00
JW Wang 584f4131cd Bug 1185407. Part 1 - have AudioSink::Init() return a promise. r=kinetik. 2015-07-22 09:54:06 +08:00
Birunthan Mohanathas 4bd37db746 Bug 1182979 - Part 4: Use nsTHashtable::Iterator in MediaShutdownManager. r=cpearce 2015-07-16 10:59:54 -07:00
Birunthan Mohanathas cb1bfa536f Bug 1182979 - Part 3: Use nsTHashtable::Iterator in GMPTimerParent. r=cpearce 2015-07-16 10:59:41 -07:00
Alfredo Yang c70bac0966 Bug 1163486 - Update test to use new MP4Demuxer. r=bholley 2015-07-21 02:49:00 +02:00
Alfredo Yang 8393a2233e Bug 1163486 - Remove MP4Reader. r=jya 2015-07-21 02:48:00 +02:00
Carsten "Tomcat" Book de3872af29 Backed out changeset 1704ea727e81 (bug 1163486) for at least b2g bustage 2015-07-21 08:42:54 +02:00
Carsten "Tomcat" Book 79fe86d82b Backed out changeset 79619b679f82 (bug 1163486) 2015-07-21 08:40:29 +02:00
Benjamin Chen fcfc87fc71 Bug 1178682 - Reject the decoded sample if timestamp is revert. r=sotaro 2015-07-17 16:18:42 +08:00
Alfredo Yang 95250b2dbf Bug 1163486 - Update test to use new MP4Demuxer. r=bholley 2015-07-20 19:26:00 +02:00
Alfredo Yang 23c919b20e Bug 1163486 - Remove MP4Reader. r=jya 2015-07-20 19:25:00 +02:00
Chris Pearce da6b6236ed Bug 1185782 - Remove media.windows-media-foundation.enabled pref. r=jya 2015-07-21 13:29:08 +12:00
Jean-Yves Avenard 079afae27a Bug 1177452: Ensure start time is always calculated on first frame decoding. r=jwwang 2015-07-21 10:14:48 +10:00
Jan Gerber 8f71a8484f Bug 1034081 - Never seek before startTime. r=rillian
Only adjust seek target up to startTime

--HG--
extra : rebase_source : 1154392a32c97b227f6293be06cbe1a31ab960e0
2015-07-14 05:59:00 -07:00
Jan-Ivar Bruaroey f6371d60cc Bug 1098015 - Modify a test to make sure createAnswer({}) works. r=bwc
--HG--
extra : transplant_source : %F4%CE%C5%DD%FA%88%17%D4N%99%B47%1A%B1%C8%A8%8FN%2C%AB
2015-07-16 18:35:45 -04:00
Jan-Ivar Bruaroey 86a8199db1 Bug 1098015 - Make createAnswer tolerate (no-op) options argument. r=bwc, r=bz
--HG--
extra : transplant_source : %AB%BECK%FAT%2A%80%07-%19%28g%DD%16%8E%C1lsU
2015-07-16 15:36:34 -04:00
Jean-Yves Avenard 5d0c759bca Bug 1181204 - Prevent use of the decoder outside the reader's taskqueue. r=cpearce
This fix a potential race when the decoder could be shutting down on the reader's taskqueue while the MediaDecoderStateMachine thread attempts to read it.

--HG--
extra : amend_source : d8a7ac55539c22f69d965299010a20b34c8a4c58
extra : transplant_source : %F6%D2z%A2%40%D1%CE%8BX%FB%9E%CA%2B%ABa%7D%F9%7Fl%BF
2015-07-20 15:14:37 -04:00
Ryan VanderMeulen 6ac7016595 Merge m-c to inbound. a=merge 2015-07-20 13:42:34 -04:00
Alastor Wu 18c83d0873 Bug 1184055 - Muted by default in b2g. r=baku 2015-07-17 17:25:25 +08:00
Jan-Ivar Bruaroey da1c4fffe2 Bug 1182354 - Clear non-persistent deviceIds on last-pb-context-exited. r=jesup 2015-07-12 23:55:02 -04:00
Kyle Huey ee4f5ba9fb Bug 1185470: Remove 'Get' prefixes from hashtable iterator methods. r=froydnj 2015-07-20 20:21:28 +08:00
Gerald Squelart 459295e9c7 Bug 1185392 - Use a separate mutex to protect mAsyncShutdownPluginStatesMutex, as mMutex could already be held when trying to update the states. r=cpearce 2015-07-19 17:42:00 +02:00
Jan Gerber 7bed9a2be5 Bug 1148102: P7. Hookup WebMDemuxer. r=jya 2015-07-20 17:27:08 +10:00
Jan Gerber 6946238e5e Bug 1148102: P6. Add WebMDemuxer object. r=jya 2015-07-20 17:27:08 +10:00