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
JW Wang
95dbcadd9c
Bug 1287698 - Make MDSM::mPendingDormant a bool. r=jya
...
MozReview-Commit-ID: 8WF0cxAFABS
2016-07-12 13:57:10 +08:00
JW Wang
b7a031773d
Bug 1285122. Part 1 - remove SeekTask::mNeedToStopPrerolling{Audio,Video} per discussion in https://reviewboard.mozilla.org/r/43689/#comment54421 . r=kaku
...
MozReview-Commit-ID: 1r909HO5Cbl
2016-07-07 14:35:58 +08:00
JW Wang
7563ae2288
Bug 1286793 - register visibility changes only when needed. r=kamidphish
...
MozReview-Commit-ID: JTlDPh3ql7A
2016-07-14 17:52:41 +08:00
JW Wang
1a0e7ccbf6
Bug 1284399. Part 6 - store a copy of SeekTarget instead of its reference in SeekTask so it's life cycle can be independent from the client. r=kaku
...
MozReview-Commit-ID: BWrutqvsj29
2016-07-05 14:12:42 +08:00
JW Wang
77563cf99e
Bug 1284399. Part 4 - move |mSeekJob.RejectIfExists(__func__)| out of SeekTask::Discard(). r=kaku
...
MozReview-Commit-ID: C0kmdNkCpk3
2016-07-05 13:55:32 +08:00
JW Wang
bf00728edc
Bug 1284399. Part 3 - remove SeekTask::Exists(). r=kaku
...
MozReview-Commit-ID: EECDBv1DR88
2016-07-05 13:50:37 +08:00
JW Wang
2ba681a3f0
Bug 1284399. Part 2 - add MDSM::mCurrentSeek to replace SeekTask::mSeekJob. r=kaku
...
MozReview-Commit-ID: 84KJcdoXakS
2016-07-05 13:43:46 +08:00
JW Wang
39bd7bfe23
Bug 1284399. Part 1 - add GetSeekTarget() to remove direct access to mSeekJob. r=kaku
...
MozReview-Commit-ID: 60wIW9gHYKt
2016-06-30 13:37:20 +08:00
JW Wang
0be7537476
Bug 1286760 - use macro to simplify the code. r=gerald
...
MozReview-Commit-ID: HsAOgQoGuQ5
2016-07-14 15:09:06 +08:00
Eugen Sawin
cd8077ac26
Bug 1284875 - [1.2] Don't recover seek position during shutdown. r=jwwang
2016-07-07 16:53:47 +02:00
JW Wang
ba343a8876
Bug 1281090. Part 3 - replace MediaDecoderReaderWrapper::Set{Audio,Video}Callback with MediaCallback. r=kaku.
...
MozReview-Commit-ID: DleK3s5F3sD
2016-06-14 11:22:45 +08:00
Kaku Kuo
53ff8ee81c
Bug 1278228 - handle VideoOnly seek as an accurate seek; r=jwwang
...
MozReview-Commit-ID: DsQQB8YX2jm
2016-06-21 10:33:32 +08:00
JW Wang
a7c2a911fa
Bug 1280175 - Allow passing lvalue to MediaEventProducerExc<T>::Notify. r=gerald
...
MozReview-Commit-ID: 6Wr3obvkVXo
2016-06-14 15:25:45 +08:00
Eugen Sawin
d59667a26e
Bug 1214710 - [2.5] Recover decode seek position when resuming suspended playback. r=jwwang
2016-06-08 18:04:33 +02:00
Carsten "Tomcat" Book
102c4ef0c7
Backed out changeset d64ca44c11ce (bug 1214710)
2016-06-08 12:08:40 +02:00
Carsten "Tomcat" Book
9b2eda8927
Backed out changeset 8a796ebc560f (bug 1214710)
2016-06-08 12:08:39 +02:00