Neil Rashbrook
c3b2f90f39
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
...
--HG--
extra : rebase_source : f8fb50de9292320eb7589dd28dc566d0f5044da6
2014-03-18 00:23:03 +00:00
Wes Kocher
c0dba87922
Backed out 2 changesets (bug 514280) for OSX build bustage on a CLOSED TREE
...
Backed out changeset 2a015b45d808 (bug 514280)
Backed out changeset a01f97c1ed02 (bug 514280)
2014-03-17 15:19:53 -07:00
Neil Rashbrook
b07eaa1644
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
...
--HG--
extra : rebase_source : eaca8b2925eaffb49e29a617cd72c0d6686e6d9e
2014-03-17 19:07:09 +00:00
Chris Pearce
3683933177
Bug 982032 - Don't re-run the COMPLETED state in MediaDecoderStateMachine if we've already run it. r=padenot
2014-03-11 18:06:23 +08:00
Chris Pearce
09cf363ca1
Bug 973408 - Merge logic from UpdateIdleState and enqueueing decode tasks, so that we always behave consistently, especially WRT setting readers Idle on B2G. r=kinetik
2014-03-11 11:44:10 +08:00
Chris Pearce
5e594c8460
Bug 973408 - Set MediaDecoderReaders idle when they're not decoding. r=kinetik
2014-03-11 11:44:10 +08:00
Chris Pearce
fbe154216d
Bug 973408 - Decode video and audio in separate media tasks. r=kinetik
2014-03-11 11:44:09 +08:00
Chris Pearce
ae1a9465d2
Bug 973408 - Split innards of MediaDecoderStateMachine::DecodeLoop() into sub DecodeAudio/DecodeVideo functions. r=kinetik
2014-03-11 11:44:09 +08:00
Chris Pearce
deb182976e
Bug 973408 - Don't block a decode thread while awaiting resources. r=kinetik
2014-03-11 11:44:09 +08:00
Chris Pearce
197f8f04a4
Bug 973408 - Split DecodeThreadRun() into separate decode tasks. r=kinetik
2014-03-11 11:44:09 +08:00
Chris Pearce
9c847a29a5
Bug 973408 - Remove MediaDecoderStateMachine::GetAmpleVideoFrames(), and MediaOMXStateMachine. r=kinetik
2014-03-11 11:44:08 +08:00
Chris Pearce
f15c1aea78
Bug 973408 - Move MediaDecoderStateMachine::DecodeLoop()'s local variables to class members so the function can be made reentrant in future. r=kinetik
2014-03-11 11:44:08 +08:00
Matthew Gregan
87855800ef
Bug 962353 - Remove totalFrameDelay from VideoPlaybackQuality. r=chris.double
...
It's not implemented by other vendors and marked as "at risk" in the spec.
Easy to add back if there's real demand/a concrete spec.
2014-03-04 15:31:57 +13:00
Chris Pearce
6fa14bff12
Bug 861136 - Strip whitespace from MediaDecoderStateMachine.cpp that was introduced in previous changeset. r=whitespace DONTBUILD
2014-03-03 14:55:33 +13:00
Chris Pearce
dfdc0cfb5d
Bug 861136 - Don't start buffering media state machine when we don't need to. r=roc
2014-03-03 14:49:52 +13:00
Chris Pearce
61d66690f5
Bug 634747 - Set MediaQueue's to Finished() when we reach end of stream while decoding after seeking and while finding first frame. r=kinetik
2014-02-25 18:45:03 +13:00
Chris Pearce
2723c96809
Bug 968016 - Wait until decode has finished before releasing resources when decoder becomes dormant. r=kinetik
2014-02-18 11:53:53 +13:00
Chris Pearce
81814d397d
Bug 968016 - Call MediaDecoderReader::OnDecodeThreadStart/Finish() in DecodeLoop(). r=kinetik
2014-02-18 11:53:53 +13:00
Chris Pearce
39ff027773
Bug 968016 - Use a SharedThreadPool of size 1 for the Media State Machine thread. r=kinetik
...
This makes it easy to share the state machine thread, and for it to shut down
automatically when the last reference is dropped to it.
2014-02-18 11:53:53 +13:00
Chris Pearce
b162ede7bd
Bug 968016 - Use SharedThreadPool instead of manually managed threads for the media decoding. r=kinetik
2014-02-18 11:53:52 +13:00
Paul Adenot
5605305435
Bug 960057 - When an HTMLMediaElement outputs to a MediaStream, make sure to install the refill callback in any case. r=roc DONTBUILD
2014-02-14 10:38:58 -08:00
Paul Adenot
8c4fd200a1
Backed out changeset 4d0197840932 (bug 960057) for invalid bug number in the commit message.
2014-02-17 13:54:17 +01:00
Paul Adenot
52459822a9
Bug 960059 - When an HTMLMediaElement outputs to a MediaStream, make sure to install the refill callback in any case. r=roc
...
--HG--
extra : rebase_source : a690159d6395ed7bab2a053bbb1cc65e11bb8be6
2014-02-14 10:38:58 -08:00
Ms2ger
4d48d6ccd6
Bug 952033 - Part e: Use IntSize in VideoSegment; r=roc
2014-02-09 09:04:38 +01:00
Ms2ger
6ffff19004
Bug 952033 - Part d: Use IntSize in MediaDecoder; r=roc
2014-02-09 09:04:38 +01:00
Ms2ger
f79d93ff0a
Bug 952033 - Part c: Use IntSize and IntRect in VideoData; r=roc
2014-02-09 09:04:38 +01:00
Ben Kelly
3503a2243d
Bug 960873: Part 2: Create AudioCompactor class to minimize allocation slop. r=cpearce
...
Based on original patch written by :gal.
2014-02-05 18:11:25 -05:00
Phil Ringnalda
fe6c4959d1
Backed out 6 changesets (bug 960873) for Win64 build bustage
...
Backed out changeset 33d8989841ac (bug 960873)
Backed out changeset 6c9e404aeb3f (bug 960873)
Backed out changeset 36c8b10b0a31 (bug 960873)
Backed out changeset 29c36a7acfb0 (bug 960873)
Backed out changeset 6e3966e0eb40 (bug 960873)
Backed out changeset 612db692256b (bug 960873)
2014-02-05 09:28:14 -08:00
Ben Kelly
41394d104a
Bug 960873: Part 2: Create AudioCompactor class to minimize allocation slop. r=cpearce
...
Based on original patch written by :gal.
2014-02-04 23:10:43 -05:00
Robert O'Callahan
ca37fefc2f
Bug 943461. Part 17: MediaDecoderStateMachine::StopPlayback should not set mPlayDuration based on real time, but on whatever we're using for GetClock. r=cpearce
...
--HG--
extra : rebase_source : 855fd9cb87cfc5824676697cc73dee12ab816c16
2013-12-13 01:33:01 +13:00
Robert O'Callahan
5e0e428a11
Bug 943461. Part 15: Make MediaDecoder set its currentTime based on the decoded stream's time directly, if we are decoding to a stream. r=cpearce
...
--HG--
extra : rebase_source : 35fe51dbec3107d7dae801a5a179c5ef5fa53725
2013-12-13 01:33:00 +13:00
Robert O'Callahan
f1d230f9a8
Bug 943461. Part 8: When a MediaDecoder is decoding to a stream, run PlaybackEnded when the stream finishes. r=padenot
...
--HG--
extra : rebase_source : 92c8b55c5d8330bcf8242d379bc608fa3d30bc6b
2013-12-07 01:01:33 +13:00
Robert O'Callahan
39882ab51c
Bug 943461. Part 7: DecodedStreamData::mNextVideoTime is not relative to mStartTime. r=cpearce
...
--HG--
extra : rebase_source : 63b4fe1859c362683b3d3192114263dd7910b183
2013-12-06 18:39:49 +13:00
Wes Kocher
9cc0508903
Backed out changeset 2e2c930a960c (bug 948269) for android 4.0 mochitest-2 permaorange
2013-12-19 19:24:42 -08:00
Matthew Gregan
70951c26f6
Bug 948269 - Split MediaDecoderStateMachine::AudioLoop out into new AudioSink class. r=cpearce
2013-12-20 13:52:06 +13:00
Chris Pearce
02a858e731
Bug 938107 - Wait for media state machine thread to shutdown during XPCOM shutdown before returning. r=roc
...
Add a MediaShutdownManager and have that as the only xpcom-shutdown
observer. This then shutsdown the MediaDecoders, and blocks waiting for
the media state machine's shared thread to complete shutdown before
exiting from the xpcom-shutdown observer. This ensures that the
MediaDecoder infrastructure does not use XPCOM on any thread after XPCOM
has shutdown, which is a logical error.
2013-12-18 16:59:11 +13:00
Alexandros Chronopoulos
d471b465db
Bug 911482 - Perform audio downmix inside AudioStream class. r=rillian
2013-09-26 22:06:59 +03:00
Phil Ringnalda
3d31b7b1b6
Back out 377f51d0e354 (bug 938108) for crashtest shutdown crashes
2013-12-15 19:56:24 -08:00
Chris Pearce
3704925aab
Bug 938108 - Wait for media state machine thread to shutdown during XPCOM shutdown before returning. r=roc
...
Add a MediaShutdownManager and have that as the only xpcom-shutdown
observer. This then shutsdown the MediaDecoders, and blocks waiting for
the media state machine's shared thread to complete shutdown before
exiting from the xpcom-shutdown observer. This ensures that the
MediaDecoder infrastructure does not use XPCOM on any thread after XPCOM
has shutdown, which is a logical error.
2013-12-16 15:52:59 +13:00
Chris Pearce
f0f2468f2e
Bug 938107 - Backed out changeset 7aff3ce81046 for bustage. r=bustage.
2013-12-16 13:48:54 +13:00
Chris Pearce
3130353840
Bug 938107 - Wait for media state machine thread to shutdown during XPCOM shutdown before returning. r=roc
...
Add a MediaShutdownManager and have that as the only xpcom-shutdown
observer. This then shutsdown the MediaDecoders, and blocks waiting for
the media state machine's shared thread to complete shutdown before
exiting from the xpcom-shutdown observer. This ensures that the
MediaDecoder infrastructure does not use XPCOM on any thread after XPCOM
has shutdown, which is a logical error.
2013-12-16 13:31:03 +13:00
Robert O'Callahan
b55ef5ba0d
Bug 938022. Part 6: Have MediaDecoder/MediaDecoderStateMachine that's producing a MediaStream use that stream's current time as the media clock. r=padenot
...
We monitor the stream's output current time via a new MediaStreamListener
owned by DecodedStreamData. We also track its main-thread Finished status.
While we're writing to a DecodedStreamData stream that hasn't finished its
output, we stay in the DECODER_STATE_COMPLETED state so we can keep updating
video and firing timeupdates.
GetClock() uses the DecodedStreamData stream's current time as the source for
the clock if there is one.
--HG--
extra : rebase_source : aba1d092d3d347e26ebd823d61fcbfa40a8cd1fe
2013-12-02 10:09:06 +13:00
Robert O'Callahan
96642f41df
Bug 938022. Part 2: Block captured MediaStream when the MediaDecoderStateMachine is not playing. r=cpearce
...
--HG--
extra : rebase_source : 01d887b3b5917b7c51a286d61feb10e7b2426d9a
2013-11-23 22:48:24 +13:00
Robert O'Callahan
6748566aed
Bug 938022. Part 1: Update mAudioEndTime from SendStreamData. r=cpearce
...
--HG--
extra : rebase_source : 2cbb5dcbe4d97e21f276559c5fb7dac99d919a2b
2013-11-23 00:33:24 +13:00
Matthew Gregan
358b7e64f0
Bug 942657 - Devirtualize AudioStream. r=doublec,gps
2013-11-28 18:09:08 +13:00
Benjamin Peterson
168ae22e9f
backout dc9ebdf27e98 (bug 942657) for bustage
2013-11-28 20:50:16 -06:00
Matthew Gregan
647694fec9
Bug 942657 - Devirtualize AudioStream. r=doublec,gps
2013-11-28 18:09:08 +13:00
Ehsan Akhgari
2f9d8a7309
Bug 939582 - Part 1: Rework the NSPR logging in content/media to use different macro names for different logs; r=doublec
2013-11-20 22:02:42 -05:00
Ehsan Akhgari
e7936b0d93
Backed out 2 changesets (bug 939582) because of build bustage
...
Backed out changeset 2079c828645a (bug 939582)
Backed out changeset af472e590088 (bug 939582)
2013-11-20 21:41:40 -05:00
Ehsan Akhgari
3c5450530e
Bug 939582 - Part 1: Rework the NSPR logging in content/media to use different macro names for different logs; r=doublec
2013-11-20 21:11:54 -05:00