Commit Graph

1503 Commits

Author SHA1 Message Date
Paul Adenot
28bfeca6e2 Bug 1106649 - Use band-limited wave tables to implement basic waveforms. r=karlt
--HG--
extra : rebase_source : 6ddbabd8d6b5c48659f4f9068cec8b6894f44d9a
2014-12-01 16:09:56 -08:00
Eric Rahm
502eba8af6 Bug 1111135 - Part 2: Check for 3gpp permission. r=roc 2015-01-05 17:54:27 -08:00
Wes Kocher
8bb1b9d23b Backed out 2 changesets (bug 1111135) for build bustage on a CLOSED TREE
Backed out changeset 0c6d384d9d65 (bug 1111135)
Backed out changeset 1ba35d7572b7 (bug 1111135)
2015-01-05 15:32:08 -08:00
Eric Rahm
4f1a16baf2 Bug 1111135 - Part 2: Check for 3gpp permission. r=roc 2015-01-05 15:15:07 -08:00
Nils Ohlmeier [:drno]
eb5de2da98 Bug 1112382 - Remove DataChannelTest wrapper. r=bwc 2014-12-26 13:32:00 -05:00
Phil Ringnalda
9f997b2894 Merge m-i to m-c, a=merge 2015-01-03 20:02:33 -08:00
Ehsan Akhgari
1937a85540 Bug 1117196 - Stop asserting |this| in AudioNodeStream; r=roc
recent clang gives the following warning on these:
'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
2015-01-03 12:22:16 -05:00
Brad Lassey
6501df4324 bug 1115802 - Scrolling no longer working when tab mirroring from fennec r=snorp 2014-12-31 14:31:05 -05:00
Robert O'Callahan
d557ac39d0 Bug 1109644. Fix bustage on a CLOSED TREE 2014-12-31 15:44:00 +13:00
Robert O'Callahan
f96b8494a1 Bug 1109644. Part 6: Remove aLastEndTime parameter from NotifyPull. r=jesup
--HG--
extra : rebase_source : 47c950d1b1d03a8de279f2ac361b8dcd4ab0f801
2014-12-30 14:54:03 +13:00
Robert O'Callahan
a36e0dd9fe Bug 1109644. Part 5: Make MediaEngineTabVideoSource use GetEndOfAppendedData instead of aLastEndTime. r=jesup
--HG--
extra : rebase_source : ee34171ed4297afa90fb14c7cf655a8d22a30dca
2014-12-30 14:54:02 +13:00
Robert O'Callahan
ec866eb827 Bug 1109644. Part 4: Make MediaEngineGonkVideoSource use GetEndOfAppendedData instead of aLastEndTime. r=jesup
--HG--
extra : rebase_source : 0899d9e42cd42b2ab4ef1d0d4cf600ccc7f49a3f
2014-12-30 14:54:02 +13:00
Robert O'Callahan
2d76f54dbb Bug 1109644. Part 3: Make MediaEngineDefaultVideoSource use GetEndOfAppendedData instead of aLastEndTime. r=jesup
--HG--
extra : rebase_source : d2285dad46e5b089b49e5ddce12564d5518c45a3
2014-12-30 14:54:02 +13:00
Robert O'Callahan
5b73829749 Bug 1109644. Part 2: Make MediaEngineWebRTCVideoSource use GetEndOfAppendedData instead of aLastEndTime. r=jesup
--HG--
extra : rebase_source : a1b716900bba01b5af1057e03bdc6360e327174b
2014-12-30 14:54:02 +13:00
Robert O'Callahan
85cb99cc25 Bug 1109644. Part 1: Create SourceMediaStream::GetEndOfAppendedData to reliably track how much data has been appended to a SourceMediaStream's track. r=jesup
--HG--
extra : rebase_source : 385ad9b704d35df7b70a75afe807e363e0929476
2014-12-30 14:54:01 +13:00
Jeff Gilbert
a76e617dd0 Bug 1100699 - Use OriginPos instead of isInverted. - r=mattwoodrow,snorp 2014-11-17 17:02:19 -08:00
Bobby Holley
70f5c9f799 Bug 1116355 - Throw when setting SourceBuffer mode to 'sequence'. r=karlt,rs=Ms2ger 2014-12-30 12:22:45 -08:00
Ehsan Akhgari
de3498d101 Bug 1116358 - Directly call Release() on |this| when closing a GMP encoder/decoder proxies; r=cpearce
This is needed in order to avoid calling Release() on a smart pointer.
2014-12-30 14:53:12 -05:00
JW Wang
73a373e963 Bug 1116006 - add debugging logs. r=cpearce 2014-12-28 22:33:00 +01:00
Benjamin Chen
935a404340 Bug 1094678 - MediaCodecReader::CreateTaskQueues() runs at main thread. r=cpearce, r=brsun 2014-12-23 14:31:30 +08:00
Carsten "Tomcat" Book
7acda539a7 Backed out changeset d1f3c8d40cdf (bug 1116355) for breaking w-4 tests on a CLOSED TREE 2014-12-30 09:46:51 +01:00
Bobby Holley
def3e6cbb3 Bug 1116355 - Throw when setting SourceBuffer mode to 'sequence'. r=karlt 2014-12-29 23:20:03 -08:00
Bobby Holley
81fc7d1d4b Bug 1114840 - Don't start playback during prerolling. r=cpearce 2014-12-29 23:16:48 -08:00
Bobby Holley
c3291e8b61 Bug 1114840 - Dynamically compute preroll thresholds. r=cpearce
Currently, the preroll threshold ends up higher than the ample threshold in the
audio-only case where we slash the audio thresholds by a factor of 8. The best
way to avoid these sorts of bugs is to compute the values dynamically.
2014-12-29 23:16:48 -08:00
Bobby Holley
01990f4d69 Bug 1114840 - Hoist arms-length conditions and rename StartPlayback() to MaybeStartPlayback(). r=cpearce 2014-12-29 23:16:48 -08:00
Bobby Holley
1eefb9ac1f Bug 1114840 - Use StartDecoding() rather than SetState in PlayInternal. r=cpearce
This makes sure that decode tasks are dispatched and that all the preroll state
is appropriately set up.
2014-12-29 23:16:48 -08:00
Bobby Holley
680cba307f Bug 1114840 - Make MediaDecoderStateMachine::Play run on the state machine thread. r=cpearce
We want to invoke StartDecoding() from Play, but that calls into a bunch of stuff
that asserts that we're on the state machine thread. It's not clear to me whether
that's actually necessary, but this seems like the right thing to do regardless
given that this is all supposed to be async anyway.
2014-12-29 23:16:48 -08:00
Jean-Yves Avenard
b1596dcc70 Bug 1115594: Fix indentation in AppleVDADecoder. r=rillian
--HG--
extra : rebase_source : 6f12f00194507d9000f11d48df8350eed968c30d
2014-12-30 12:06:22 +11:00
Bobby Holley
fe6a11e4f9 Bug 1115749 - Hold the demuxer lock while accessing metadata. r=rillian
We're invoking a number of methods on mDemuxer here.
2014-12-29 16:10:16 -08:00
Bobby Holley
47687b23ea Bug 1115749 - Hold the demuxer monitor in MP4Reader::Seek. r=rillian
This method invokes Seek* on mDemuxer.
2014-12-29 16:10:16 -08:00
Bobby Holley
e6e1fb5905 Bug 1115749 - Rename mIndexMonitor to mDemuxerMonitor. r=rillian 2014-12-29 16:10:16 -08:00
Karl Tomlinson
98e1dfd45e bug 975782 bring media resource loads out of background while they delay the load event r=cpearce
This will happen after a stalled load doesn't delay the load event but such a
load then delays the load event again when it receives progress.

--HG--
extra : rebase_source : a04dd7416f86306cfc62aabba20fb30415572d98
2014-12-23 14:16:05 +13:00
Ryan VanderMeulen
3d3603fd0c Bug 1091965 - Skip test_mixingRules.html on Android 2.3 due to high intermittent failure rate. 2014-12-26 12:22:56 -05:00
Ryan VanderMeulen
beb4598a7f Bug 1115148 - Skip test_WaitingOnMissingData.html on Android 2.3 due to high intermittent failure rate. 2014-12-26 12:18:34 -05:00
JW Wang
7079de5df9 Bug 1110922 - Add logs to debug test_played.html timeouts. r=cpearce 2014-12-22 23:12:00 -05:00
Jean-Yves Avenard
a3c28798a1 Bug 1111319: Reorder video frames with respect to decoding sliding window. r=rillian 2014-12-24 23:11:35 +11:00
Jean-Yves Avenard
cb16fdaa24 Bug 1111328: Retrieve video dimensions from H264 SPS when possible. r=rillian 2014-12-24 23:11:35 +11:00
Blake
bc4de955f9 Bug 1080484 - Support avi/divx, ts/m2ts, and mkv media formats. r=cajbir 2014-12-23 10:20:25 +08:00
Ryan VanderMeulen
539cbb2493 Merge inbound to m-c. a=merge 2014-12-23 13:17:16 -05:00
Carsten "Tomcat" Book
bf58b7f6ca Backed out changeset aef3ce3b89b9 (bug 1073003) 2014-12-23 13:35:05 +01:00
Carsten "Tomcat" Book
86c35b85c1 Backed out changeset 3d81c5b78567 (bug 1073003) 2014-12-23 13:35:04 +01:00
Carsten "Tomcat" Book
2ab649cfb7 Backed out changeset ad0bb596da2c (bug 1073003) 2014-12-23 13:35:02 +01:00
Carsten "Tomcat" Book
42f8b57b0a Backed out changeset 4902a8efe178 (bug 1073003) 2014-12-23 13:34:57 +01:00
Bobby Holley
51e382d00c Bug 1114830 - Only enter buffering mode when the pending request is waiting for data. r=cpearce a=philor 2014-12-22 20:54:01 -08:00
Ryan VanderMeulen
93534bdf01 Merge inbound to m-c. a=merge 2014-12-22 17:55:32 -05:00
Jean-Yves Avenard
1b4e25aac8 Bug 1114802: MP4: Hold demuxer monitor while resetting. r=kentuckyfriedtakahe 2014-12-23 13:39:35 +11:00
JW Wang
7d14ddd10c Bug 1080685 - add logs to debug vp9cake.webm timeout in test_playback.html. r=cpearce 2014-12-22 19:43:00 +01:00
Chris Pearce
03dbaa0232 Bug 1101308 - Remove code to zero stack after GMP device binding as it's causing crashes. r=edwin 2014-12-22 19:59:00 +01:00
Alastor Wu
b357dcd13a Bug 1105913 - [b2g] video can't playback after waking up from the dormant state, part 2 : revert changeset. r=roc. 2014-12-23 15:03:15 +08:00
Alastor Wu
35e5ba65a8 Bug 1105913 - [b2g] video can't playback after waking up from the dormant state, part 1 : avoid blocking. r=roc. 2014-12-23 15:04:20 +08:00
Botond Ballo
3beceb6904 Bug 1073003 - Remove a spurious line added to a moz.build file. r=glandium
--HG--
extra : rebase_source : 71549941e6b83322803519a0f5c9526e0ad56561
2014-12-23 01:16:36 -05:00
Botond Ballo
1356b6d4a6 Bug 1073003 - More Werror bustage fixes on a CLOSED TREE. r=bustage
--HG--
extra : rebase_source : 86466eea48ddfc7b5698d97ca574ed6cdf79326e
extra : amend_source : 9eb590b24276a068bbb078152509b3c743bb40f8
2014-12-23 00:03:15 -05:00
Jean-Yves Avenard
38d4caccab Bug 1105771: Allow playback of avc3 streams. r=cpearce 2014-12-23 14:42:55 +11:00
Jean-Yves Avenard
d7f0a4602f Bug 1113403: Make MP4Sample destructor virtual. r=kinetik 2014-12-23 14:40:29 +11:00
Jean-Yves Avenard
514510a632 Bug 1113045: Make AppleVT/VDA/AT/Decoder's destructors virtual. r=rillian
These decoders are accessed through a base class.
Additionally, the style guide dictates that we're supposed to add "virtual" keyword even when it's unnecessary, for documentation purposes.
2014-12-23 14:39:22 +11:00
Jean-Yves Avenard
b2f2b09c22 Bug 1110534: Use ref counted pointers to hold references in mac decoder. r=rillian 2014-12-23 14:36:10 +11:00
Jean-Yves Avenard
9cdf6937a4 Bug 1110534: Use AVCC wrapper for EME. Adds AnnexB and AVC3 support. r=cpearce 2014-12-23 14:36:10 +11:00
Jean-Yves Avenard
73cd5036a3 Bug 1110534: Use AVCC wrapper for mac decoder. Adds AnnexB and AVC3 support. r=cpearce 2014-12-23 14:36:10 +11:00
Jean-Yves Avenard
43dc514afc Bug 1110534: Create AVCC converter wrapper class. r=cpearce
This class easily allows an AVCC-only decoder (H264EME and Apple VDA/VideoToolbox) to support
AnnexB and AVC3 content.
This is done by lazily creating the decoder only once we have detected SPS/PPS in the data
stream, and converting all input to AVCC format.
2014-12-23 14:36:10 +11:00
Jean-Yves Avenard
c7723f6179 Bug 1110534: Make PlatformDecoderModule ref counted. r=edwin 2014-12-23 14:36:10 +11:00
Jean-Yves Avenard
037499d91e Bug 1110534: Add AnnexB support to FFmpeg h264 decoder. r=kentuckyfriedtakahe 2014-12-23 14:36:09 +11:00
Jean-Yves Avenard
7341bcdb6e Bug 1110534: Use more accurate names in MP4Sample and Annex B utility functions. r=kentuckyfriedtakahe 2014-12-23 14:36:09 +11:00
Jean-Yves Avenard
8f57ec0db8 Bug 1110534: Simplify MP4 extradata handling. r=kentuckyfriedtakahe 2014-12-23 14:36:09 +11:00
Botond Ballo
ac92460241 Bug 1073003 - Additional Werror bustage fixes in newly added webrtc code. r=bustage
--HG--
extra : rebase_source : bdf0d3d341a42608366912243c1e1cc9fd398b0c
2014-12-22 22:23:51 -05:00
Chris Pearce
387ccf2fbe Bug 1114825 - Bustage fix. r=bustage. 2014-12-23 16:10:39 +13:00
Botond Ballo
862614909b Bug 1073003 - Disable -Wattribute warnings in media/webrtc. r=bustage
--HG--
extra : rebase_source : a24a01f05596be3bc6a67e0b238eb3d599cd5eda
2014-12-22 21:45:18 -05:00
Chris Pearce
8a385751f6 Bug 1114825 - Don't try to deref an empty std::vector in gmp-clearkey. r=edwin 2014-12-23 15:23:14 +13:00
Ryan VanderMeulen
63ee28d4b7 Merge inbound to m-c. a=merge 2014-12-22 18:01:06 -05:00
Chris Pearce
c4e3f4a357 Bug 1113477 - Fix logging in GMPParent that incorrectly labels sending nodeId and startPlugin as failed when it actually succeeded. r=edwin 2014-12-23 11:21:54 +13:00
Ehsan Akhgari
c2194dba73 Bug 1114348 - Use mozilla::IsNaN() in Web Audio code; r=padenot
--HG--
extra : rebase_source : 0acc0643ed6a8800d02557f6e84312955e34a59e
2014-12-22 08:54:55 -05:00
Sotaro Ikeda
e636229ac6 Bug 1113769 - Handle out of gralloc in MediaEngineGonkVideoSource::RotateImage() r=jesup 2014-12-22 07:05:19 -08:00
Carsten "Tomcat" Book
71dd629331 Merge mozilla-central to b2g-inbound 2014-12-22 14:04:32 +01:00
Bobby Holley
f01bb671ea Bug 1109437 - Only switch to buffering mode when the reader is waiting for data. r=cpearce 2014-12-22 00:20:31 -08:00
Bobby Holley
49601684ad Bug 1109437 - Implement non-polling buffering. r=cpearce 2014-12-22 00:20:31 -08:00
Bobby Holley
05e1250b67 Bug 1109437 - Schedule the state machine thread in MediaSourceDecoder::Load. r=cpearce
This is necessary to get the state machine moving after it's initialized.
MediaDecoder::Load does this, but it looks like we missed this in the override.
So the current code relies on the ScheduleStateMachine call at the end of
TrackBuffer::AppendData to get things rolling. We're going to be removing that
call, so we need to fix this.
2014-12-22 00:20:31 -08:00
Bobby Holley
17a26db299 Bug 1109437 - Switch m{Audio,Video}RequestPending to a tri-state. r=cpearce 2014-12-22 00:20:31 -08:00
Bobby Holley
663679c83b Bug 1109437 - Stop using buffering heuristics when they're not requested. r=cpearce
Given that we set the buffering wait to 0 in this case already, the only practical
impact on our behavior of this change is that we'll no longer ping-pong between
states.
2014-12-22 00:20:30 -08:00
Bobby Holley
05224076bc Bug 1109437 - Generalize GetBufferingWait to UseBufferingHeuristics. r=cpearce 2014-12-22 00:20:30 -08:00
Bobby Holley
ffd128ab61 Bug 1109437 - Remove MOZ_COUNT_{C,D}TOR on refcounted promise classes. r=cpearce
These were accidental and redundant, because refcounted classes get this behavior
automatically. And this is very lucky, because it turns out that our MOZ_COUNT_*
infrastructure can't handle varying-sized instances identified with the same
string, which is exactly what we can get with these templated types.

The only remaining use of these macros is on the non-templated ThenValueBase,
which is happily not variable-sized. \o/
2014-12-22 00:20:30 -08:00
Boris Chiou
ea4203738e Bug 1098970 - Part 6: Fix the usage of GonkNativeWindow in Omx. r=sotaro
Use new APIs for GonkNativeWindowLL.
2014-12-17 22:31:00 +01:00
Ryan VanderMeulen
facb39a4e0 Backed out 7 changesets (bug 1109437) for suspicious-looking crashes on a CLOSED TREE.
Backed out changeset dc45e97d102d (bug 1109437)
Backed out changeset e6350e4fb18b (bug 1109437)
Backed out changeset 4c38dda06880 (bug 1109437)
Backed out changeset 72f171ec04ba (bug 1109437)
Backed out changeset ec275f65c676 (bug 1109437)
Backed out changeset 65d172e7a1cf (bug 1109437)
Backed out changeset 0b8a156dcff0 (bug 1109437)
2014-12-19 17:02:27 -05:00
Nils Ohlmeier [:drno]
f41e9e1786 Bug 1016476: more bundle tests r=bwc 2014-12-17 11:55:00 -08:00
Benjamin Chen
d676e9ef65 Bug 1091992 - fix the flag skipToNextKeyFrame in DecodeVideo can't be raised if the video is slower than audio. r=cpearce, r=jwwang 2014-12-22 11:32:31 +08:00
Bobby Holley
6a0b2751fe Bug 1092025 - Hold the lock for the entire duration of MediaSourceReader::ReadMetaData. r=karlt 2014-12-21 23:14:59 -08:00
Bobby Holley
3a7dd07a3d Bug 1114383 - Unlock the demuxer monitor before calling out via MP4Stream. r=k17e 2014-12-21 22:04:36 -08:00
Bobby Holley
6d0ec2b9a3 Bug 1114383 - Assert that access to mMoofs goes through a monitor. r=k17e 2014-12-21 22:04:36 -08:00
Bobby Holley
01bbb5b92f Bug 1114383 - Acquire the index monitor in MP4Reader::PopSample. r=k17e 2014-12-21 22:04:36 -08:00
Byron Campen [:bwc]
404d84f2d4 Bug 1016476 - Part 2: Test work. r=drno 2014-11-25 17:36:16 -08:00
Bobby Holley
d3178b735c Bug 1109437 - Only switch to buffering mode when the reader is waiting for data. r=cpearce 2014-12-19 11:39:15 -08:00
Bobby Holley
6b50bfd173 Bug 1109437 - Implement non-polling buffering. r=cpearce 2014-12-19 11:39:15 -08:00
Bobby Holley
1170137ae6 Bug 1109437 - Schedule the state machine thread in MediaSourceDecoder::Load. r=cpearce
This is necessary to get the state machine moving after it's initialized.
MediaDecoder::Load does this, but it looks like we missed this in the override.
So the current code relies on the ScheduleStateMachine call at the end of
TrackBuffer::AppendData to get things rolling. We're going to be removing that
call, so we need to fix this.
2014-12-19 11:39:15 -08:00
Bobby Holley
cb28e17a47 Bug 1109437 - Switch m{Audio,Video}RequestPending to a tri-state. r=cpearce 2014-12-19 11:39:15 -08:00
Bobby Holley
8a61e238be Bug 1109437 - Stop using buffering heuristics when they're not requested. r=cpearce
Given that we set the buffering wait to 0 in this case already, the only practical
impact on our behavior of this change is that we'll no longer ping-pong between
states.
2014-12-19 11:39:15 -08:00
Bobby Holley
afa50587e3 Bug 1109437 - Generalize GetBufferingWait to UseBufferingHeuristics. r=cpearce 2014-12-19 11:39:14 -08:00
Bobby Holley
7d0e766c1e Bug 1109437 - Remove MOZ_COUNT_{C,D}TOR on refcounted promise classes. r=cpearce
These were accidental and redundant, because refcounted classes get this behavior
automatically. And this is very lucky, because it turns out that our MOZ_COUNT_*
infrastructure can't handle varying-sized instances identified with the same
string, which is exactly what we can get with these templated types.

The only remaining use of these macros is on the non-templated ThenValueBase,
which is happily not variable-sized. \o/
2014-12-19 11:39:14 -08:00
Daniel Holbert
3229ae5426 Bug 1105065: Remove an #ifdef, to fix a -Wunused-private-field build warning in GMPLoader.cpp for builds with --disable-sandbox. r=cpearce 2014-12-19 10:12:23 -08:00
Ehsan Akhgari
1813ae2d33 Bug 867348 - Part 2: Apply MOZ_NO_ARITHMETIC_EXPR_IN_ARGUMENT to CheckedInt's constructor; r=jrmuizel,cpearce
Note that the analysis currently just looks at the AST subtree of the
function call site and is therefore unable to correctly deal with cases
such as the last two hunks of the change to OggCodecState.cpp.  Fixing
the analysis to deal with that would be very difficult, so we currently
adjust the code so that it compiles.  The first hunk in that file though
is a real bug that this analysis found.
2014-12-18 15:27:05 -05:00
Ryan VanderMeulen
c54bf72326 Backed out changesets 6bd00fa70b00, 4e2f8f3b8f6b, and c89fec9c8b55 (bug 879717) for introducting multiple new intermittent failures.
--HG--
extra : rebase_source : 4aad9383081f256484dd06e87f14cc82ecf186b5
2014-12-19 12:07:20 -05:00
Andreas Pehrson
099c1c9b78 Bug 879717 - Part 3 - Test video dimensions set on loadedmetadata event. r=roc 2014-12-19 01:25:00 +01:00
Andreas Pehrson
a670bb9fa6 Bug 879717 - Part 2 - Test that drawing a video element to canvas never throws. r=roc 2014-11-26 18:30:00 +01:00