Commit Graph
1098 Commits
Author SHA1 Message Date
JW Wang 943ccba437 Bug 1325317. Part 1 - move StopMediaSink() out of MediaDecoderStateMachine::Reset(). r=kikuo
MozReview-Commit-ID: 6Bso8uxM7Ee
2016-12-22 16:48:54 +08:00
JW Wang 2f3ca16102 Bug 1325321 - let DecodingState handle audio/video pop events. r=kaku
MozReview-Commit-ID: 9EjeOfn1vBU
2016-12-22 17:28:14 +08:00
JW Wang 7bdf603a9a Bug 1325905. Part 7 - add assertions to ensure Ensure{Audio,Video}DecodeTaskQueued is never called by DecodingFirstFrameState. r=kaku
MozReview-Commit-ID: 9zSuH4p0aqg
2016-12-21 18:26:31 +08:00
JW Wang 56cd6ab899 Bug 1325905. Part 6 - let DecodingFirstFrameState::Enter() call Request{Audio,Video} instead. r=kaku
MozReview-Commit-ID: AH1F9hMJorM
2016-12-22 04:32:47 +08:00
JW Wang f3f118ecb4 Bug 1325905. Part 5 - let DecodingFirstFrameState override Handle{Audio,Video}Waited. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued
which checks mState and breaks the encapsulation of the state objects.

MozReview-Commit-ID: 5oydItSvnMF
2016-12-21 18:23:00 +08:00
JW Wang 54c3e93089 Bug 1325905. Part 4 - let DecodingFirstFrameState override Handle{Audio,Video}NotDecoded. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued
which checks mState and breaks the encapsulation of the state objects.

MozReview-Commit-ID: 87CwSdtTwi4
2016-12-21 18:16:25 +08:00
JW Wang 6b8b39a0de Bug 1325905. Part 3 - split HandleNotDecoded() into HandleAudioNotDecoded() and HandleVideoNotDecoded(). r=kaku
MozReview-Commit-ID: 3RcG43pxGSv
2016-12-21 18:00:37 +08:00
JW Wang a4ea0ef91b Bug 1325905. Part 2 - move IsWaitForDataSupported() assertions into MediaDecoderReaderWrapper. r=kaku
MozReview-Commit-ID: 6KwjHONHKo
2016-12-21 17:37:56 +08:00
JW Wang 256e4d4a9f Bug 1325905. Part 1 - add assertions to MDSM::Request{Audio,Video}Data. r=kaku
MozReview-Commit-ID: JjRsv2wdLUq
2016-12-21 17:21:21 +08:00
JW Wang 99c0760a0b Bug 1325004. Part 7 - remove Push(). r=kikuo
MozReview-Commit-ID: 7fNAGwKhKSN
2016-12-21 16:06:58 +08:00
JW Wang b880e9ffeb Bug 1325004. Part 6 - let DecodingState call Push{Audio,Video} instead. r=kikuo
MozReview-Commit-ID: boYTgSK4hw
2016-12-21 16:05:08 +08:00
JW Wang bf53e1a542 Bug 1325004. Part 5 - let BufferingState call Push{Audio,Video} instead. r=kikuo
BufferingState will call DispatchDecodeTasksIfNeeded() if not done buffering.

MozReview-Commit-ID: Kzqqn8lXPLm
2016-12-21 16:03:16 +08:00
JW Wang 41b45e3489 Bug 1325004. Part 4 - let NextFrameSeekingState call Push{Audio,Video} instead. r=kikuo
MozReview-Commit-ID: 6E2BfLNh91r
2016-12-21 15:56:18 +08:00
JW Wang 9b5b56903e Bug 1325004. Part 3 - let DecodingFirstFrameState call Push{Audio,Video} instead. r=kikuo
DecodingFirstFrameState needs only at most one audio or video sample.

MozReview-Commit-ID: 2pRrPlCUBSf
2016-12-21 15:54:30 +08:00
JW Wang 8396f61fa4 Bug 1325004. Part 2 - let AccurateSeekingState call Push{Audio,Video} instead. r=kikuo
AccurateSeekingState can stop decoding once there is one sample in the queue.

MozReview-Commit-ID: 76C7vX7ua14
2016-12-21 15:51:45 +08:00
JW Wang f1117b8487 Bug 1325004. Part 1 - add PushAudio() and PushVideo(). r=kikuo
MozReview-Commit-ID: KJdOy1Ke6Xg
2016-12-21 15:36:44 +08:00
JW Wang 5858b1d00a Bug 1319295. Part 2 - reject the seek promise with WAITING_FOR_DATA so MDSM has a chance to call WaitForData() and seek again. r=jya
MozReview-Commit-ID: I8A0rQMcTya
2016-12-16 17:30:28 +08:00
JW Wang 7e45f1cd63 Bug 1319295. Part 1 - add a field to identify audio or video seek failures. r=jya
MozReview-Commit-ID: 3PXlISED4tm
2016-12-16 16:57:27 +08:00
JW Wang 83e7d8558b Bug 1324629. Part 5 - replace some member functions with lambda. r=kaku
MozReview-Commit-ID: 8mRePsDxUWx
2016-12-22 14:01:21 +08:00
JW Wang debe83d2de Bug 1324629. Part 4 - clean up some functions and comments. r=kaku
MozReview-Commit-ID: HP2Tp8KbRoq
2016-12-20 15:48:20 +08:00
JW Wang 36de42a71b Bug 1324629. Part 3 - remove AudioWait and videoWait callbacks. r=kaku
MozReview-Commit-ID: 9pXLLrYLN4c
2016-12-20 14:31:29 +08:00
JW Wang bdcfe7ef4e Bug 1324629. Part 2 - remove video callback. r=kaku
MozReview-Commit-ID: 92t6GoznxL5
2016-12-20 13:17:05 +08:00
JW Wang f0937ee50f Bug 1324629. Part 1 - remove audio callback. r=kaku
MozReview-Commit-ID: DbWwSNpYXLo
2016-12-20 12:54:23 +08:00
JW Wang 58ffe96650 Bug 1324371. Part 6 - assert |VideoQueue().AtEndOfStream()|. r=kaku
UpdateSeekTargetTime() is called only when NeedMoreVideo() is false.
if |data| is null, both |VideoQueue().IsFinished()| and |VideoQueue().GetSize() == 0| must be true
and therefore |VideoQueue().AtEndOfStream()| must also be true.

MozReview-Commit-ID: DZKiVtt6iIM
2016-12-19 17:40:10 +08:00
JW Wang 57b6e952d5 Bug 1324371. Part 5 - add FinishSeek() and remove MaybeFinishSeek(). r=kaku
MozReview-Commit-ID: FvbLdPQWZ82
2016-12-19 17:29:01 +08:00
JW Wang e11ab5cb61 Bug 1324371. Part 4 - assert NeedMoreVideo() in some functions. r=kaku
Because !mSeekJob.mPromise.IsEmpty() now always implies NeedMoreVideo().

MozReview-Commit-ID: BN0NZzaBlCF
2016-12-19 17:18:03 +08:00
JW Wang 88311a34d3 Bug 1324371. Part 3 - inline IsVideoRequestPending() which has only one caller. r=kaku
MozReview-Commit-ID: 7bBDRQV9zJ1
2016-12-19 17:03:16 +08:00
JW Wang 0f16505470 Bug 1324371. Part 2 - remove IsVideoSeekComplete() and finish seek without waiting for pending video requests. r=kaku
MozReview-Commit-ID: 8GRbxJEG33j
2016-12-19 16:53:50 +08:00
JW Wang 0b3a732156 Bug 1324371. Part 1 - remove IsAudioSeekComplete(). r=kaku
We don't need to wait for pending audio requests before finish seeking.

MozReview-Commit-ID: BWoivb9Gjux
2016-12-19 16:24:30 +08:00
JW Wang 5968425459 Bug 1324339. Part 8 - remove unused functions. r=kaku
MozReview-Commit-ID: a68nAvEIyx
2016-12-19 16:01:35 +08:00
JW Wang 5c4c0565c5 Bug 1324339. Part 7 - remove mIsVideoQueueFinished and finish the queue in place. r=kaku
MozReview-Commit-ID: DEpQOcJnFnc
2016-12-19 15:56:07 +08:00
JW Wang 86819b99c4 Bug 1324339. Part 6 - remove mIsAudioQueueFinished which is not set at all. r=kaku
MozReview-Commit-ID: 6Ilvqigonga
2016-12-19 15:51:14 +08:00
JW Wang c5936f0f96 Bug 1324339. Part 5 - remove |mSeekedVideoData|. r=kaku
MozReview-Commit-ID: DSW2Jb22ZpA
2016-12-19 15:47:45 +08:00
JW Wang 98670a6058 Bug 1324339. Part 4 - remove |mSeekedAudioData|. r=kaku
Just push the sample into the audio queue without delay.

MozReview-Commit-ID: 9eg92DUaIVo
2016-12-19 15:43:56 +08:00
JW Wang dcf6478dd6 Bug 1324339. Part 3 - remove NextFrameSeekingState::{Audio,Video}Queue. r=kaku
Add DoSeekInternal() to be called by AysncNextFrameSeekTask so we don't need
to re-define {Audio,Video}Queue in NextFrameSeekingState.

MozReview-Commit-ID: JVeCvVD24vM
2016-12-19 15:37:36 +08:00
JW Wang b45960ab2d Bug 1324339. Part 2 - remove duplicate code that is already in MDSM::On{Audio,Video}Decoded,OnNotDecoded. r=kaku
MozReview-Commit-ID: HwOVSvRhxE5
2016-12-19 14:12:43 +08:00
JW Wang 2255cadff7 Bug 1324339. Part 1 - merge CreateSeekTask() and ResetMDSM() with DoSeek(). r=kaku
MozReview-Commit-ID: ABJR3WaRqt5
2016-12-19 13:13:32 +08:00
Jean-Yves Avenard dede4979be Bug 1319992: P3. Remove no longer used seeking argument. r=jwwang
MozReview-Commit-ID: 9Oc0SHX0Rw2
2016-11-30 01:42:50 +11:00
JW Wang fb2370f713 Bug 1324335. Part 3 - cache mTarget before resetting it. r=gerald
MozReview-Commit-ID: KknqPo2gGJK
2016-12-19 12:43:52 +08:00
JW Wang b36af754f7 Bug 1324335. Part 2 - Make SeekJob::mTarget a Maybe<>. r=gerald
MozReview-Commit-ID: A2M3b131nHH
2016-12-19 12:25:14 +08:00
Sebastian Hengst 698bc61483 Backed out changeset 3cfdc09bf851 (bug 1319992) 2016-12-19 12:38:32 +01:00
Jean-Yves Avenard c5a13b98e4 Bug 1319992: P3. Remove no longer used seeking argument. r=jwwang
MozReview-Commit-ID: 9Oc0SHX0Rw2
2016-11-30 01:42:50 +11:00
JW Wang 3de6aac539 Bug 1323931. Part 6 - remove unused functions. r=kaku
MozReview-Commit-ID: LdyMhmOicSc
2016-12-16 16:09:35 +08:00
JW Wang 40a7bc9ed1 Bug 1323931. Part 5 - remove mSeekedAudioData and mSeekedVideoData. r=kaku
MozReview-Commit-ID: 72hBe0dv2Xr
2016-12-16 16:01:57 +08:00
JW Wang 4e2a094d2f Bug 1323931. Part 4 - no need to update mDecoded{Audio,Video}EndTime in OnSeekTaskResolved(). r=kaku
For they are updated in MDSM::On{Audio,Video}Decoded.

MozReview-Commit-ID: 55Od3V9vIf2
2016-12-16 15:40:05 +08:00
JW Wang 5cb1c89dec Bug 1323931. Part 3 - remove mIsAudioQueueFinished/mIsVideoQueueFinished and finish queues in place. r=kaku
MozReview-Commit-ID: 2MDZSa3g7cj
2016-12-16 15:28:09 +08:00
JW Wang 6bfc0ae5a7 Bug 1323931. Part 2 - use raw pointers to reduce unnecessary ref-counting. r=kaku
MozReview-Commit-ID: 1iVaCGLqFCy
2016-12-16 15:11:19 +08:00
JW Wang 672a2f77b7 Bug 1323931. Part 1 - remove unnecessary comments and logs. r=kaku
They are already in MDSM::On{Audio,Video}Decoded, OnNotDecoded.

MozReview-Commit-ID: COivpHEaYdp
2016-12-16 14:55:50 +08:00
Kaku Kuo d74eea8464 Bug 1322800 part 14 - remove SeekTask and NextFrameSeekTask; r=jwwang
MozReview-Commit-ID: 1oHKukYqLO4
2016-12-16 15:29:50 +08:00
Kaku Kuo 72913b118a Bug 1322800 part 13 - disconnect NextFrameSeekingState and SeekTask; r=jwwang
MozReview-Commit-ID: 9bcYSd2fsp1
2016-12-15 17:25:44 +08:00