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

128 Коммитов

Автор SHA1 Сообщение Дата
Chris Pearce ded330ee85 Bug 1125970 - Don't flush decode task queue in MediaDecoderStateMachine::FlushDecoding(). r=bholley 2015-02-16 09:03:26 -08:00
Bobby Holley d828efaed5 Bug 1126723 - Bail out of HasLowUndecodedData if we don't have a duration. v1 r=cpearce
GetEstimatedBufferedTimeRanges returns an empty range if the duration is -1.
2015-02-13 12:09:51 -08:00
Bobby Holley 40c886531c Bug 1126723 - Don't store bogus durations. v1 r=cpearce
The apple MP3 decoder passes in garbage for this particular live stream. Let's
validate our inputs.
2015-02-13 12:09:50 -08:00
Jean-Yves Avenard 7773a4f02e Bug 1130839: Seek to end of media if duration changed. r=cpearce
If the duration is changed such that the current playback position ends up
being greater than the time of the end of the media resource, then the user
agent must also seek to the time of the end of the media resource.
2015-02-12 18:53:53 +11:00
Bobby Holley 4209e9651f Bug 1129246 - Switch to MediaPromiseConsumerHolders for MDSM audio/video promises and remove RequestStatus. v3 r=cpearce 2015-02-09 11:34:38 -08:00
Bobby Holley a15ce311b8 Bug 1129523 - Use ProxyMediaCall for video decode tasks. r=cpearce,r=mattwoodrow 2015-02-04 17:12:51 -08:00
Chris Pearce eb27bb22f8 Bug 1123535 - Make dormant ResetPlayback assertion more lenient. r=jwwang 2015-02-04 10:17:28 +13:00
Sotaro Ikeda 16749fec58 Bug 1112519 - Clear mDropVideoUntilNextDiscontinuity when we do not seek r=cpearce 2015-02-03 12:53:12 -08:00
JW Wang 997ae89e39 Bug 1128411. Part 2 - call SendStreamData() in AdvanceFrame() to simplify the code of SendStreamData(). r=roc. 2015-02-02 13:58:31 +08:00
JW Wang 3ff6f200ed Bug 1128411. Part 1 - fix some bugs in MediaDecoderStateMachine::SendStreamData(). r=roc. 2015-02-02 13:53:54 +08:00
Phil Ringnalda ab3f3ffe2f Back out d28c88e9705d (bug 1128411)
CLOSED TREE
2015-02-02 20:37:49 -08:00
JW Wang 6616978c49 Bug 1128411. Part 2 - call SendStreamData() in AdvanceFrame() to simplify the code of SendStreamData(). r=roc. 2015-02-02 13:58:31 +08:00
Chris Pearce 98610dedd6 Bug 1127641 - Reduce MDSM video frame queue length when hardware accelerated. r=kentuckyfriedtakahe 2015-02-02 09:28:41 +13:00
JW Wang 99e95e2eff Bug 1127171 - Put mozCaptureStream operations in the same lock. r=roc 2015-01-28 18:57:00 -05:00
Chris Pearce 90912c2e6f Bug 1123535 - Don't hold decoder monitor while calling PreReadMetadata. r=kentuckyfriedtakahe 2015-01-29 21:50:48 +13:00
Chris Pearce 6a682696a6 Bug 1123535 - Run MediaDecoderReader::ReleaseMediaResources on decode task queue. r=jwwang 2015-01-21 18:02:27 +08:00
Sotaro Ikeda ead2712118 Bug 1125472 - Reset video request status on reset decode. r=cpearce 2015-01-29 21:50:20 +13:00
Carsten "Tomcat" Book 97952b7caa Backed out changeset fde8a287433b (bug 1125472) 2015-01-27 09:39:06 +01:00
Carsten "Tomcat" Book b5897b0a72 Backed out changeset b6bec74def09 (bug 1123535) 2015-01-27 09:39:04 +01:00
Carsten "Tomcat" Book c232714eb0 Backed out changeset f6da914b2a93 (bug 1123535) 2015-01-27 09:38:56 +01:00
Chris Pearce 6932daf12e Bug 1123535 - Don't hold decoder monitor while calling PreReadMetadata. r=kentuckyfriedtakahe 2015-01-27 19:30:11 +13:00
Chris Pearce ce1554bd89 Bug 1123535 - Run MediaDecoderReader::ReleaseMediaResources on decode task queue. r=jwwang 2015-01-21 18:02:27 +08:00
Chris Pearce 8dffdeedf3 Bug 1125472 - Don't flush decode task queue in MediaDecoderStateMachine::FlushDecoding(). r=bholley 2015-01-27 19:30:11 +13:00
Bobby Holley 0bd7caedde Bug 1124952 - Set request status to Pending in the special DecodeFirstFrame calls too. r=cpearce 2015-01-26 15:59:44 -08:00
Byron Campen [:bwc] 19a5029fa0 Bug 1123882: Fix case where offset != 0 r=derf
--HG--
extra : rebase_source : 8d0cc9a8b21eede927cb51e79e1857bc69fbea5d
2015-01-21 08:56:36 -08:00
Bobby Holley f2e2db81ac Bug 1121148 - Make QUICK_BUFFERING_LOW_DATA_USECS a member variable and adjust it appropriately. r=cpearce 2015-01-21 21:53:04 -08:00
Bobby Holley b398a95f3c Bug 1121148 - Move constants that we should not be using directly into a namespace. r=cpearce
This lets us avoid using them accidentally in place of their member-variable
equivalents.
2015-01-21 21:53:04 -08:00
Bobby Holley 3e322225c5 Bug 1123983 - Don't reset request status in MediaDecoderStateMachine::FlushDecoding. r=cpearce 2015-01-21 14:34:26 -08:00
Barbara Guida e664fe84a3 Bug 1122586 - Unbreak build on platforms missing std::llabs since bug 1073716. r=dholbert 2015-01-16 17:50:00 +01:00
Bobby Holley 986f783e03 Bug 1121692 - Make seeks cancelable. r=cpearce,r=mattwoodrow 2015-01-16 10:58:00 -08:00
Bobby Holley f5e1dd8c14 Bug 1121692 - Move the interesting seek state logic into DecodeSeek. r=mattwoodrow,r=cpearce
This is necessary so that we can call CancelSeek at the same moment we determine
that it needs to be called without round-tripping between threads.
2015-01-16 10:58:00 -08:00
Bobby Holley e814d359c3 Bug 1121692 - Remove unnecessary arguments to ::Seek. r=mattwoodrow,sr=cpearce 2015-01-16 10:57:59 -08:00
Sotaro Ikeda e662668d12 Bug 1110343 - Suppress redundant loadedmetadata event when dormant exit r=cpearce 2015-01-16 07:56:19 -08:00
Sotaro Ikeda 8ebcff8383 Bug 1121658 - Remove DestroyDecodedStream() from MediaDecoder::SetDormantIfNecessary() r=roc 2015-01-16 06:56:14 -08:00
Jean-Yves Avenard b0638f45f3 Bug 1119757: Allow seeking on media with infinite duration. r=cpearce
MSE defines content to have infinite duration when no duration is defined.
And MSE is always seekable within the buffered range, regardless of the duration

--HG--
extra : rebase_source : 369cce10504b125716af0a60e07d1d1144117f59
2015-01-16 23:49:01 +11:00
Jean-Yves Avenard 7823a3b9f4 Bug 1121342: Re-Request audio or video to decode first frame after a failed attempt. r=cpearce
--HG--
extra : rebase_source : 3434fc4a46cc32622241cc2e36a713bf38623b6a
2015-01-16 15:48:40 +11:00
Julian Seward b22caf6904 Bug 1119803 - Uninitialised value use in StopPrerollingVideo. r=bobbyholley. 2015-01-13 12:56:38 +01:00
Chris Pearce 59325224ff Bug 1112445 - Ignore the audio stream when determining whether we should skip-t-o-next-keyframe for async readers. r=mattwoodrow 2015-01-13 22:31:03 +13:00
Andreas Pehrson 80e35edf78 Bug 1113600 - Part 4. Handle switching directly from audio clock to stream clock. r=roc 2015-01-13 03:23:48 +08:00
Andreas Pehrson a22a198c37 Bug 1113600 - Part 2. Handle setting a MediaStream sync point mid-playback. r=roc 2015-01-08 13:37:22 +08:00
Andreas Pehrson a5b7750c02 Bug 1113600 - Part 1. Send stream data right away after adding an output stream. r=roc 2015-01-08 13:36:29 +08:00
Sotaro Ikeda 18b1606ac8 Bug 1112410 - Handle set dormant during seeking r=cpearce 2015-01-12 15:08:55 -08:00
JW Wang 1bb19d6931 Bug 1115505 - keep decoding to ensure the stream is initialized in the decode-to-stream case. r=roc 2014-12-25 01:26:00 +01:00
Matt Woodrow 972dde5588 Bug 1105066 - Make SeekPromise return the time we actually seeked to; r=kentuckyfriedtakahe 2015-01-12 10:57:14 +13:00
Chris Peterson 9e23388ca8 Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo 2015-01-06 21:39:46 -08:00
Bobby Holley 8d967098a2 Bug 1120017 - Make the DispatchDecodeTasksIfNeeded path handle DECODER_STATE_DECODING_FIRSTFRAME. r=cpearce
Once we make MP4Reader reject with WAITING_FOR_DATA, we end up with the following scenario:

DecodeFirstFrame requests audio data, and then it gets rejected with WAITING_FOR_DATA.
So OnAudioNotDecided does WaitForData, which eventually causes us to be called back in
MediaDecoderStateMachine::WaitForDataResolved. That does DispatchDecodeTasksIfNeeded, which
currently bails out of our state is DECODER_STATE_DECODING_FIRSTFRAME.

The other way to do this would be to add a separate specialized path through all this
asynchronicity for DECODER_STATE_DECODING_FIRSTFRAME. But it's not clear to me what that
buys us.
2015-01-09 17:20:58 -08:00
Jonathan Hao e56901c3a0 Bug 1080461 - Part 2: Fix RTSP autoplay. r=bechen, r=jwwang 2015-01-06 09:58:04 +08:00
Jonathan Hao a29a94eff5 Bug 1080461 - Part 1: Add IsRealTime() in MediaDecoderStateMachine. r=bechen, r=jwwang 2015-01-06 09:57:53 +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