JW Wang
331a8f5cf8
Bug 1299369. Part 1 - assert !mSentFirstFrameLoadedEvent in FinishDecodeFirstFrame(). r=kaku
...
FinishDecodeFirstFrame() is called from:
1. MaybeFinishDecodeFirstFrame() when mSentFirstFrameLoadedEvent is false.
2. SeekCompleted() when mSentFirstFrameLoadedEvent is false.
MozReview-Commit-ID: HOV3ZeS2qB0
2016-08-31 12:54:50 +08:00
JW Wang
6d40da2508
Bug 1299074. Part 5 - remove unused members. r=kaku
...
MozReview-Commit-ID: DPDPuMKUNPv
2016-08-30 16:48:09 +08:00
JW Wang
239707b1be
Bug 1299074. Part 4 - replace checks for IsDecodingFirstFrame() with !mSentFirstFrameLoadedEvent. r=kaku
...
MozReview-Commit-ID: 4ouQAdn4hbZ
2016-08-30 16:45:26 +08:00
JW Wang
5545aaa066
Bug 1299074. Part 3 - check |mSentFirstFrameLoadedEvent| to know whether we can finish decoding first frames. r=kaku
...
MozReview-Commit-ID: 10VNH3rhPpy
2016-08-30 16:32:36 +08:00
JW Wang
a573d0f9f2
Bug 1299074. Part 2 - simplify the handling of pending seek in StartDecoding(). r=kaku
...
mSentFirstFrameLoadedEvent is sufficient to tell us whether we can handle the pending seek now or later.
MozReview-Commit-ID: KzDd2brvKPA
2016-08-30 16:21:43 +08:00
JW Wang
3222f32cfd
Bug 1299064. Part 3 - remove the calls to ScheduleStateMachine() following |SetState(DECODER_STATE_DECODING)|. r=kaku
...
Note nextState is either DECODER_STATE_COMPLETED or DECODER_STATE_DECODING in SeekCompleted().
Their entry actions call ScheduleStateMachine() directly or indirectly.
MozReview-Commit-ID: DpDW7qtlogV
2016-08-30 15:11:15 +08:00
JW Wang
0b5a1ffa95
Bug 1299064. Part 2 - remove the if/else statement at the end of SeekCompleted(). r=kaku
...
|SetState(nextState)| is the equivalent of the if/else.
MozReview-Commit-ID: 51ab4BBdd4T
2016-08-30 15:06:56 +08:00
JW Wang
bdaad21780
Bug 1299064. Part 1 - move |SetState(nextState)| and ScheduleStateMachine() to the bottom of SeekCompleted(). r=kaku
...
UpdatePlaybackPositionInternal(), |mQuickBuffering = false| and |mMediaSink->Redraw| should belong to
the exit action of SEEKING. By change the order of the statements, we have a better definition/scope
for the jobs of each state.
MozReview-Commit-ID: 6WESdwaD8Ba
2016-08-30 15:04:43 +08:00
JW Wang
21050bb072
Bug 1298297 - Remove DECODER_STATE_ERROR from MDSM. r=kaku
...
MozReview-Commit-ID: BWpPoXDDlux
2016-08-26 17:41:45 +12:00
JW Wang
350d12fb28
Bug 1298217. Part 11 - Move some code to the entry action of DECODER_STATE_BUFFERING. r=kaku
...
MozReview-Commit-ID: BCtmXQi2zNg
2016-08-29 11:50:10 +08:00
JW Wang
2f0989b5ce
Bug 1298217. Part 10 - Assert |mState == DECODER_STATE_DECODING| in StartBuffering() which is only called by MaybeStartBuffering() which also asserts that. r=kaku
...
MozReview-Commit-ID: BhcNiiQZX3I
2016-08-26 06:34:06 +12:00
JW Wang
e236988541
Bug 1298217. Part 9 - Assert |mState == DECODER_STATE_DECODING| in MaybeStartBuffering() which is only called in the DECODER_STATE_DECODING case of RunStateMachine(). r=kaku
...
MozReview-Commit-ID: KLz8CpxDz71
2016-08-26 06:31:57 +12:00
JW Wang
a6ff19c799
Bug 1298217. Part 8 - Move some code to the entry action of DECODER_STATE_DECODING. r=kaku
...
MozReview-Commit-ID: 1gzwIX566i
2016-08-29 11:46:08 +08:00
JW Wang
cbe6e6d968
Bug 1298217. Part 7 - Assert |mState != DECODER_STATE_DECODING| in StartDecoding(). r=kaku
...
StartDecoding() is called from several places where mState is proven to be not DECODER_STATE_DECODING:
1. Called by PlayStateChanged() when mState is BUFFERING.
2. Called by OnMetadataRead() where mState is DECODING_METADATA.
3. Called by SeekCompleted() where mState is SEEKING.
4. Called by RunStateMachine() when the case is BUFFERING.
5. Called by OnCDMProxyReady() when mState is WAIT_FOR_CDM.
MozReview-Commit-ID: 53LWipLzdRo
2016-08-29 11:36:26 +08:00
JW Wang
d3f4e4eacd
Bug 1298217. Part 6 - Move some code to the entry action of DECODER_STATE_COMPLETED. r=kaku
...
MozReview-Commit-ID: 5hf3NV5uLvS
2016-08-26 06:25:15 +12:00
JW Wang
c214fb397a
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
2016-08-26 06:18:53 +12:00
JW Wang
f4601d5ce9
Bug 1298217. Part 4 - Remove the call to DispatchDecodeTasksIfNeeded() from CheckIfDecodeComplete() because we've decoded all samples. r=kaku
...
MozReview-Commit-ID: 22qa8K8j5zb
2016-08-26 06:08:54 +12:00
JW Wang
b5e722f81e
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
2016-08-26 06:06:20 +12:00
JW Wang
5b83b82171
Bug 1298217. Part 2 - Move some code to the entry action of DECODER_STATE_DORMANT. r=kaku
...
MozReview-Commit-ID: 9q35AhxS5IP
2016-08-26 05:58:12 +12:00
JW Wang
e04d588416
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
2016-08-26 10:52:52 +12:00
Kaku Kuo
e7bcd99310
Bug 1286454 part 1 - remove MediaData::mDiscontinuity; r=jwwang
...
This member is only assigned but never used now.
MozReview-Commit-ID: IbuAbRaXzc4
2016-08-25 20:30:02 +08:00
Jean-Yves Avenard
cb4fa6ce47
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
2016-08-28 21:20:52 +10:00
JW Wang
99f7663e3f
Bug 1297553 - Dump more debugging messages for MDSM and MediaSink. r=kaku
...
MozReview-Commit-ID: ILcF1hT2hVN
2016-08-24 11:45:58 +12:00
JW Wang
57b9674077
Bug 1295073 - Remove the aRealTime parameter from the MediaDecoderStateMachine constructor. r=cpearce
...
MozReview-Commit-ID: BXMVAV1R3gx
2016-08-15 14:54:10 +08:00
Iris Hsiao
4e08022dc4
Backed out changeset d6d2cc94bb92 (bug 1295906) for M-e10s crashes on Windows 7 debug
2016-08-23 15:39:20 +08:00
JW Wang
396bb064df
Bug 1295906 - Move |mVideoFrameContainer->ClearCurrentFrame()| out of MediaFormatReader::ReleaseResources(). r=jya
...
MozReview-Commit-ID: E0bm0zNoaZ7
2016-08-17 17:11:19 +08:00
JW Wang
ca516381df
Bug 1295893 - Add entry/exit actions to state transitions of MDSM. r=kaku
...
MozReview-Commit-ID: Ak17K7kEigC
2016-08-12 16:06:30 +08:00
JW Wang
618ad0db0d
Bug 1295901 - Change the semantics/naming of MediaDecoderReader::ReleaseMediaResources(). r=jya
...
MozReview-Commit-ID: DyOwNcC2JK5
2016-08-17 15:03:30 +08:00
Gerald Squelart
88a4afa051
Bug 1294349 - Report VIDEO_SUSPEND_RECOVERY_TIME_MS - r=kaku
...
MozReview-Commit-ID: EipANZqUhBh
2016-08-11 15:05:22 +08:00
JW Wang
9b8725809b
Bug 1294615. Part 2 - Refactor MDSM::SetDormant() to remove unnecessary checks for mQueuedSeek.Exists() and mCurrentSeek.Exists(). r=kaku
...
We've proven that when seek is in action, mQueuedSeek.Exists() is always false and mCurrentSeek.Exists() is always true.
MozReview-Commit-ID: CxNU45NXG88
2016-08-11 17:33:07 +08:00
JW Wang
6cc2957dd5
Bug 1294615. Part 1 - Assert mQueuedSeek.Exists() is false in InitiateSeek(). r=kaku
...
InitiateSeek() is called from several places where we can prove mQueuedSeek.Exists() is false:
1. MaybeFinishDecodeFirstFrame(): mQueuedSeek is moved when calling InitiateSeek().
2. Seek() rejects mQueuedSeek before calling InitiateSeek().
3. StartDecoding(): mQueuedSeek is moved when calling InitiateSeek().
4. VisibilityChanged(): it doesn't call InitiateSeek() when mQueuedSeek.Exists() is true.
MozReview-Commit-ID: BriPw0VID5O
2016-08-11 16:07:45 +08:00
Kaku Kuo
e26892fad5
Bug 1294656 - apply FastSeek to video files without audio track; r=jwwang
...
MozReview-Commit-ID: 8r4Ghd9RXbq
2016-08-12 17:37:02 +08:00
JW Wang
53a68a4a1b
Bug 1294634 - Use a switch statement to convert State to string. r=bechen
...
MozReview-Commit-ID: 513zK0G0Pvi
2016-08-12 14:54:12 +08:00
JW Wang
a58e45da36
Bug 1294629 - Simplify the code of ReaderSuspendedChanged(). r=kaku
...
SetDormant() checks IsShutdown() and |mState == DECODER_STATE_DORMANT|.
So ReaderSuspendedChanged() can just call SetDormant(mIsReaderSuspended) to do the work.
MozReview-Commit-ID: J7Dzsm8IhIS
2016-08-11 17:35:51 +08:00
Kaku Kuo
b3c1441eb6
Bug 1294384 - make video-only attribute orthogonal to the seek type; r=jwwang
...
MozReview-Commit-ID: 2oBjuiN7pLn
2016-08-12 11:45:02 +08:00
JW Wang
81114cf666
Bug 1294352 - Merge MDSM::InitiateSeek() and MDSM::InitiateDecodeRecoverySeek(). r=kaku
...
MozReview-Commit-ID: 8wgRY9QHOYg
2016-08-11 15:37:27 +08:00
JW Wang
471c2d3df0
Bug 1294345 - Remove the TrackSet parameter from MediaDecoderStateMachine::InitiateDecodeRecoverySeek(). r=kaku
...
MozReview-Commit-ID: 7iXecyVAIXq
2016-08-11 15:03:15 +08:00
JW Wang
a8082c43f2
Bug 1294320 - Remove MediaDecoderStateMachine::IsVideoDecodeSuspended() r=kaku
...
MozReview-Commit-ID: 9iTzmMhw686
2016-08-11 11:32:14 +08:00
Dan Glastonbury
247bbb1b18
Bug 1284177 - P1: Provide observable notification for video suspend. r=jwwang
...
To support mochitests, report change in video decode suspend state via
events mozentervideosuspend/mozexitvideosuspend.
MozReview-Commit-ID: EwMduLzcMVg
2016-07-04 14:35:21 +10:00
JW Wang
784322cd80
Bug 1292453 - MDSM should enter dormant state when its reader is suspended. r=esawin
...
MozReview-Commit-ID: Fg7jBtGEHBy
2016-08-09 14:43:22 +08:00
Jean-Yves Avenard
9cea791e3d
Bug 1128069: [MSE] P4. Do not adjust duration to what data we may have been seen in the past. r=jwwang
...
With MediaSource, the duration is always known and exact. It is entirely possible that we have played data at some point, then removed that data and adjusted the duration.
MozReview-Commit-ID: HZe2yXtQfIL
2016-08-05 16:03:01 +10:00
JW Wang
5199cc8261
Bug 1291633 - Don't call MediaDecoder::SeekingStarted when visibility is Suppressed. r=kaku
...
MozReview-Commit-ID: 15YOmFCoXGp
2016-08-03 17:18:54 +08:00
Carsten "Tomcat" Book
8ed9dcbd2e
merge mozilla-inbound to mozilla-central a=merge
2016-08-04 15:55:50 +02:00
JW Wang
c84d735f56
Bug 1291185 - Remove the DECODER_WARN_HELPER trick. r=bechen
...
MozReview-Commit-ID: 7U1p0VOvmY3
2016-08-02 16:45:28 +08:00
Carsten "Tomcat" Book
519880095f
Backed out changeset 221e8d2b180e (bug 1274626)
2016-08-02 17:47:24 +02:00
Kaku Kuo
f8e880219d
Bug 1274626 part 6 - make MDSM change video decoder dynamically; r=jwwang
...
MozReview-Commit-ID: LK0gt8HhnVn
2016-07-25 17:08:28 +08:00
Kaku Kuo
4910ba90d9
Bug 1274626 - Part 6 - make MDSM change video decoder dynamically; r=jwwang
...
MozReview-Commit-ID: LK0gt8HhnVn
2016-07-25 17:08:28 +08:00
JW Wang
48bfc25489
Bug 1286766 - make MediaPrefs::MDSMSuspendBackgroundVideoDelay() safe to read off main thread using Preferences::AddAtomicUintVarCache(). r=gerald,kamidphish
...
MozReview-Commit-ID: FAplUTE07l0
2016-07-14 15:50:23 +08:00
JW Wang
65d62d6e96
Bug 1287670 - Improve cohesion of MDSM::InitiateSeek(). r=kaku
...
MozReview-Commit-ID: BgaTUXFik9a
2016-07-07 16:55:24 +08:00
JW Wang
02e3b36360
Bug 1287700 - Remove unused MDSM::mDispatchedEventToDecode. r=bechen
...
MozReview-Commit-ID: 5lUb83GWoNL
2016-07-12 13:58:40 +08:00