Commit Graph
1098 Commits
Author SHA1 Message Date
Bobby Holley 4a6cc1f244 Bug 1175768 - Dispatch NotifyDataArrived and remove the aBuffer argument. r=jya
It would be nice to remove the argument in a separate patch, but we can't
perform MediaResource reads on the main thread, so the SilentReadAt stuff
needs to happen at the same time as the off-main-thread stuff.
2015-06-27 01:19:10 -07:00
Bobby Holley 96d780c66f Bug 1175768 - Make the logic in MDSM::NotifyDataArrived apply to mObservedDuration. r=jya
With this change, we don't need to condition this work on infinite streams.
2015-06-27 01:19:06 -07:00
JW Wang 9ff0a52360 Bug 1177466 - Clean up places calling MaybeStartPlayback() in MediaDecoderStateMachine. r=cpearce 2015-06-18 11:59:26 +08:00
Ryan VanderMeulen 1dc5e1d7d3 Backed out 8 changesets (bug 1175768) for frequent media test failures.
Backed out changeset a369cfb95b59 (bug 1175768)
Backed out changeset e02dd312d622 (bug 1175768)
Backed out changeset 6776ce74b9e5 (bug 1175768)
Backed out changeset 6aa5fa1d318e (bug 1175768)
Backed out changeset a8bd7a0d2aea (bug 1175768)
Backed out changeset 41ffc9a9ac48 (bug 1175768)
Backed out changeset 2d2cefa397dc (bug 1175768)
Backed out changeset 4e06368496d2 (bug 1175768)

CLOSED TREE
2015-06-23 16:20:15 -04:00
Bobby Holley a036731555 Bug 1175768 - Use mirroring for buffered ranges. r=jya 2015-06-22 22:53:09 -07:00
Bobby Holley 6c31a5fe6f Bug 1175768 - Dispatch NotifyDataArrived and remove the aBuffer argument. r=jya
It would be nice to remove the argument in a separate patch, but we can't
perform MediaResource reads on the main thread, so the SilentReadAt stuff
needs to happen at the same time as the off-main-thread stuff.
2015-06-22 22:53:07 -07:00
Bobby Holley 7cae07977c Bug 1175768 - Make the logic in MDSM::NotifyDataArrived apply to mObservedDuration. r=jya
With this change, we don't need to condition this work on infinite streams.
2015-06-22 22:53:05 -07:00
JW Wang e10480fa72 CLOSED TREE. Bug 1174077 - send silence instead of nothing to the decoded stream in CORS case. r=roc. 2015-06-18 10:19:51 +08:00
Bobby Holley 1e4025f378 Bug 1172264 - Watch mStateMachineDuration, and stop manually firing DurationChanged. r=jww 2015-06-17 09:49:11 -07:00
Bobby Holley faa73bd24e Bug 1172264 - Route mExplicitDuration directly from the mediasource code to MediaDecoder, and stop passing an argument to DurationChanged. r=pending=jww 2015-06-17 09:49:10 -07:00
Bobby Holley aa848074cf Bug 1172264 - Mirror duration from the MDSM to the MediaDecoderReader and remove MDSM::GetDuration. r=jww 2015-06-17 09:49:10 -07:00
Bobby Holley fad926cc2d Bug 1172264 - Mirror duration from the MDSM to the MediaDecoder. r=jww 2015-06-17 09:49:09 -07:00
Bobby Holley e57002c2e8 Bug 1172264 - Track the MDSM's duration as a TimeUnit and eliminate the separate concept of 'end time'. r=jww 2015-06-17 09:49:08 -07:00
JW Wang 9859fcc812 Bug 1172826 - remove unnecessary checks for MediaDecoderStateMachine::mPlaybackRate. r=kinetik. 2015-06-17 10:31:05 +08:00
Bobby Holley 6d13c0e511 Bug 1163223 - Remove MediaDecoderStateMachine::mStartTime. r=jww CLOSED TREE 2015-06-16 15:08:45 -07:00
Bobby Holley 8bbccc4518 Bug 1163223 - Adjust incoming samples for start time. r=jww 2015-06-16 15:08:35 -07:00
Bobby Holley e8c700d82c Bug 1163223 - Be more explicit about when we notify metadata. r=jww 2015-06-16 15:08:34 -07:00
Bobby Holley 4a39f530ae Bug 1163223 - Use AwaitStartTime to invoke MediaDecoderReader::SetStartTime. r=jww 2015-06-16 15:08:33 -07:00
Bobby Holley 69687cccdc Bug 1163223 - Use AwaitStartTime to handle metadata end time. r=jww 2015-06-16 15:08:31 -07:00
Bobby Holley a7535cece6 Bug 1163223 - Introduce StartTimeRendezvous and route samples through it. r=jww
No sample adjusting is done yet - this just makes the data available.
2015-06-16 15:08:30 -07:00
Wes Kocher 1778d6b65b Backed out 8 changesets (bug 1163223) for getting in the way of me backing out f46a712edf7e
Backed out changeset c1b33c43f0c5 (bug 1163223)
Backed out changeset a7ee6eb45f62 (bug 1163223)
Backed out changeset b2e10f194455 (bug 1163223)
Backed out changeset 9e7651567cad (bug 1163223)
Backed out changeset 20e25e93ed5f (bug 1163223)
Backed out changeset 5193508738f8 (bug 1163223)
Backed out changeset aea6b8d15318 (bug 1163223)
Backed out changeset 7b6804398fc3 (bug 1163223)
2015-06-16 14:47:50 -07:00
Bobby Holley a5ac119527 Bug 1163223 - Remove MediaDecoderStateMachine::mStartTime. r=jww 2015-06-16 13:00:00 -07:00
Bobby Holley 74376ba80b Bug 1163223 - Adjust incoming samples for start time. r=jww 2015-06-16 13:00:00 -07:00
Bobby Holley a60f83702f Bug 1163223 - Be more explicit about when we notify metadata. r=jww 2015-06-16 12:59:59 -07:00
Bobby Holley ee3b243461 Bug 1163223 - Use AwaitStartTime to invoke MediaDecoderReader::SetStartTime. r=jww 2015-06-16 12:59:58 -07:00
Bobby Holley c58800f1c1 Bug 1163223 - Use AwaitStartTime to handle metadata end time. r=jww 2015-06-16 12:59:57 -07:00
Bobby Holley cd28e94c3b Bug 1163223 - Introduce StartTimeRendezvous and route samples through it. r=jww
No sample adjusting is done yet - this just makes the data available.
2015-06-16 12:59:57 -07:00
JW Wang 77a96d5341 Bug 1173248 - Remove the workaround introduced to MDSM by bug 951278. r=cpearce. 2015-06-15 10:22:54 +08:00
Bobby Holley b16eaed41d Bug 1174039 - Guard against early states in UpdateNextFrameStatus. r=jww 2015-06-11 23:24:01 -07:00
JW Wang dcb10c4170 Bug 1173289 - Remove WakeDecoderRunnable from MDSM. r=roc. 2015-06-07 16:29:56 +08:00
JW Wang f12f7cbf2c Bug 1172825 - MDSM playback should depend on IsPlaying() instead of |mPlayState|. r=cpearce. 2015-06-11 10:16:33 +08:00
Bobby Holley ad8bba4626 Bug 1173001 - Enable tail dispatch for the decode task queue. r=jww 2015-06-10 14:17:26 -07:00
Bobby Holley 176ed7784c Bug 1173001 - Initialize reader task queue in the constructor. r=jww
This is a necessary step towards having mirrored/canonical values, since those
need to know the task queue in their constructor.
2015-06-10 14:17:25 -07:00
JW Wang 5f65930646 Bug 1172392 - Align update of audio end time of decoded stream with that of AudioSink. r=roc. 2015-06-10 12:49:41 +08:00
JW Wang 4c506f07b0 Bug 1172778 - Update readyState when audio samples are popped by AudioSink. r=cpearce. 2015-06-10 10:55:56 +08:00
JW Wang 256e163fed Bug 1172390 - Align stream blocking of decoded stream with play state of MDSM. r=roc. 2015-06-08 16:51:39 +08:00
Bobby Holley c343a7bb9c Bug 1160695 - Drop Support for Content-Duration. r=cpearce 2015-06-08 09:22:46 -07:00
Bobby Holley 0add17d9c2 Bug 1160695 - Hoist post-duration-change seeking into MediaDecoder where it belongs. r=jww
Without this, we get failures in test_TruncatedDuration.html etc. I decided that
integrating this into the precisely correct position in the patch stack was too
much work.
2015-06-08 09:22:43 -07:00
Bobby Holley 348edab79c Bug 1160695 - Clarify the semantics of when we fire DurationChanged. r=jww
It would be better for SetDuration to do this, and base it off of the current
MDSM state rather than the cause of the duration change. But this clarifies the
current situation a bit without adding more risk to this patch stack.
2015-06-08 09:22:41 -07:00
Bobby Holley d61db25a00 Bug 1160695 - Clean up SetDuration and remove negative duration case. r=jww 2015-06-08 09:22:40 -07:00
Bobby Holley f4d0bbb0de Bug 1160695 - Track observed duration separately. r=jww 2015-06-08 09:22:39 -07:00
Bobby Holley 7af7434245 Bug 1160695 - Track demuxer-estimated duration separately. r=jww 2015-06-08 09:22:37 -07:00
Bobby Holley d560eb41f6 Bug 1160695 - Track explicit (mediasource) duration separately. f=jww,rpending=jya 2015-06-08 09:22:28 -07:00
Bobby Holley 8e9bbdc269 Bug 1160695 - Make MediaDecoder::DurationChanged take a duration argument rather than reading it back synchronously from the MDSM. r=jww 2015-06-08 09:21:23 -07:00
Bobby Holley 0d7715a540 Bug 1160695 - Track "metadata duration" separately and mirror it to MediaDecoderReader. r=jww 2015-06-08 09:21:22 -07:00
Bobby Holley 9f262fa99e Bug 1160695 - Track "network duration" separately and mirror it to the MDSM. r=jww 2015-06-08 09:21:20 -07:00
JW Wang 6f4dcec385 Bug 1162381. Part 2 - refactor DecodedStreamData::mInitialTime to be consistent with AudioSink when computing stream position. r=roc. 2015-06-08 16:51:36 +08:00
JW Wang 8c7508297c Bug 1162381. Part 1 - include mStartTime when calculating endPosition. r=roc. 2015-06-08 16:51:33 +08:00
JW Wang 65310e2dec Bug 1172387 - Clean up code of MediaDecoderStateMachine::StopAudioThread. r=kinetik. 2015-06-08 11:27:22 +08:00
Eric Rahm 900b3ebc4d Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00