Jean-Yves Avenard
5e704b8f13
Bug 1237809: P3. Ensure element dimensions are up to date. r=jwwang
...
The VideoContainer contains more up to date video size information than the MediaInfo received by MediaDecoder::MetadataLoaded
2016-01-13 13:55:58 +11:00
JW Wang
3ebf4dc195
Bug 1237616 - Remove the aForceBuffering arugment from MediaDecoder::Resume(). r=cpearce.
2016-01-12 08:04:32 +08:00
Jean-Yves Avenard
91746e1b5f
Bug 1207220: Ensure MediaShutdownManager waits until all MediaDecoder have completed their shutdown. r=cpearce
...
XPCOM when shutting down expects all tasks to be run synchronously. As such, we must ensure that the remaining MediaDecoder are shut down before continuing on the next task.
In particular destroying gfxPlatforms must only ever happen after, as it is possible for the MediaDecoderReader to make use of gfx resources during shutdown.
2016-01-05 11:55:50 +11:00
Jean-Yves Avenard
04d6e7da9f
Bug 1234092: P1. Remove GStreamer support. r=kentuckyfriedtakahe
...
It was now unused by default.
2015-12-23 01:14:22 +11:00
Chris Peterson
c3636fea5a
Bug 1232223 - Part 3: Remove MOZ_WAVE #ifdefs because Wave is always supported. r=jya
2015-12-18 00:51:16 -08:00
Chris Peterson
5655d03320
Bug 1232223 - Part 1: Remove MOZ_WEBM #ifdefs because WebM is always supported, though not necessarily enabled. r=jya r=glandium
2015-12-12 13:49:07 -05:00
Jean-Yves Avenard
4a0eef18ed
Bug 1229987: P4. Stop pre-rolling when encountering WAITING_FOR_DATA. r=cpearce
...
This allows to start displaying frames even when we have less than 5 frames.
2015-12-18 19:26:54 +11:00
JW Wang
7fa0fb3d54
Bug 1230004. Part 2 - have MDSM::BeginShutdown return a promise and remove MDSM::mDecoder. r=cpearce.
2015-12-03 15:59:44 +08:00
JW Wang
44efdca870
Bug 1230004. Part 1 - cache data in MDSM so it won't need to ask MediaDecoder. r=cpearce.
2015-12-03 15:59:30 +08:00
Jean-Yves Avenard
4c0a7eb975
Bug 1229256: P2. Use buffered range to determine next frame availability. r=jwwang
...
To avoid potential regression with some of our tests expecting our old particular behaviour, we only use the buffered range to determine the next frame status if the old method determined that the next frame was unavailable due to the MediaDecodeStateMachine not having decoded the next frame yet.
2015-12-03 12:38:10 +11:00
Jean-Yves Avenard
f608acdfa8
Bug 1229256: P1. Only check readyState update upon buffered range completion. r=jwwang
...
When MediaDecoder::NotifyDataArrived is called, the buffered range hasn't been updated as of yet, causing unnecessary calls to UpdateReadyState().
Delay the readyState update until the buffered range is modified.
2015-12-03 12:38:10 +11:00
JW Wang
cb6c7460e1
Bug 1228939 - 1. add mSeekable to MediaInfo. 2. use MediaEventSource to notify the decoder when the media is not seekable. 3. remove unused code. r=jya.
2015-12-02 15:42:32 +08:00
JW Wang
ea5b44f5ac
Bug 1228923 - Merge some MediaEventSource for MDSM. r=jya.
2015-12-01 09:34:02 +08:00
JW Wang
e29a951f12
Bug 1227797 - Use MediaEventSource to publish playback events for MDSM. r=jya.
2015-11-30 13:06:19 +08:00
Benjamin Chen
56b0e97af9
Bug 1198576 - Remove MediaCodecReader. r=bwu
2015-11-25 16:18:01 +08:00
Chris Pearce
e5c8a9b8fc
Bug 1226450 - Report audio/video codecs used in HTMLMediaElement and WebAudio via telemetry. r=jya
2015-11-25 12:52:48 +13:00
JW Wang
efddf9d9ac
Bug 1226569. Part 2 - assert functions that should never be called after shutdown. r=jya.
2015-11-23 10:35:56 +08:00
JW Wang
98580acba1
Bug 1226569. Part 1 - Use MediaEventSource to publish MetadataLoaded and FirstFrameLoaded events. r=jya.
2015-11-23 10:35:18 +08:00
Jean-Yves Avenard
0ff8b287c3
Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe
...
Following bug 1209410, it was no longer used.
2015-11-19 10:40:33 +11:00
JW Wang
281af73606
Bug 1219142. Part 1 - add AbstractMediaDecoder::DataArrivedEvent() to publish events. r=jya.
2015-11-18 09:00:56 +08:00
JW Wang
08403774a4
Bug 1221009. Part 3 - add assertions to functions that shouldn't be called after shutdown. r=roc.
2015-11-16 07:51:22 +08:00
JW Wang
4a1c941a0d
Bug 1221009. Part 2 - remove unused code. r=roc.
2015-11-16 07:51:03 +08:00
JW Wang
0b163fff0a
Bug 1221009. Part 1 - add a class to forward notifications from MediaResource to MediaDecoder. r=roc.
2015-11-16 07:50:55 +08:00
sajitk
13171aa66e
Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
2015-11-15 14:49:01 +01:00
JW Wang
c920811bf0
Bug 1223599 - Remove the throttling argument from AbstractMediaDecoder::NotifyDataArrived(). r=jya.
2015-11-11 17:59:16 +08:00
Wes Kocher
9ec1c7554a
Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE
2015-11-11 09:36:56 -08:00
sajitk
47326a1fc0
Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
2015-11-11 06:52:00 +01:00
JW Wang
f3692b1d56
Bug 1220558. Part 1 - remove unused arguments from MediaDecoderReader::DispatchNotifyDataArrived() and its callees/callers. r=jya.
2015-11-11 07:43:38 +08:00
JW Wang
6d5037c08a
Bug 1220646 - don't access mOwner which is invalid after shutdown. r=kinetik.
2015-11-03 20:26:57 +08:00
JW Wang
dc557fc03e
Bug 1219169. Part 1 - Remove AbstractMediaDecoder::OnStateMachineTaskQueue(). r=jya.
2015-11-02 10:36:48 +08:00
JW Wang
9bb03183e7
Bug 1217653 - MediaDecoder::GetOwner() should return null after shutdown. r=kinetik.
2015-10-28 14:17:28 +08:00
JW Wang
47bf57bd93
Bug 1218280. Part 1 - create MediaResourceCallback for MediaResource to send notifications. r=roc.
2015-10-27 10:28:26 +08:00
Eric Rahm
ef2af5437e
Bug 1174785 - Part 2: Convert xpcom over to LogModule. r=froydnj
2015-10-19 12:50:14 -07:00
JW Wang
9d75983218
Bug 1215023. Part 2 - remove null check of mOwner. We check mShuttingDown to know whether it is valid to call functions of mOwner. r=kinetik.
2015-10-19 13:55:38 +08:00
JW Wang
2c53cfce55
Bug 1215023. Part 1 - make MediaDecoder::mOwner a const member. We will check mShuttingDown before calling functions of mOwner. r=kinetik.
2015-10-19 13:55:26 +08:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
JW Wang
6c0d4f97fe
Bug 1214989. Part 3 - remove MediaDecoder::Init() and its callers. r=gerald.
2015-10-15 11:39:45 +08:00
JW Wang
1b514602de
Bug 1214989. Part 1 - add MediaDecoderOwner to the constructors of MediaDecoder and sub-classes. r=gerald.
2015-10-15 11:36:21 +08:00
Eric Rahm
c8366aba60
Bug 1190592 - Part 1: Add mediasource memory reporter. r=jya
...
This adds asyncrounous reporting of MSE resources.
2015-08-20 18:10:33 -04:00
JW Wang
7f210ba828
Bug 1214519 - Fix the coding style of member initializer lists of MediaDecoder. r=jya.
2015-10-15 10:38:14 +08:00
JW Wang
582b648a0d
Bug 1214065 - Remove unused arguments from MediaDecoder::Load() and its friends. r=kinetik.
2015-10-14 11:46:27 +08:00
JW Wang
9a5f3361e1
Bug 1212701. Part 1 - remove AbstractMediaDecoder::OnDecodeTaskQueue(). r=jya.
2015-10-12 12:05:49 +08:00
JW Wang
2977751e61
Bug 1146482 - remove MediaDecoder::mReentrantMonitor which is not used anymore. r=jya.
2015-10-07 14:53:22 +08:00
JW Wang
70f9cd986a
Bug 1211766 - Remove AbstractMediaDecoder::GetReentrantMonitor(). r=jya.
2015-09-30 07:04:49 +08:00
Jean-Yves Avenard
f8d2e02fda
Revert "Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe" r=me
...
This reverts commit ecbe6589d36e
May be better of waiting a little bit in case we find that the new MP3Demuxer isn't up to scratch
2015-10-02 19:24:54 +10:00
Jean-Yves Avenard
ddd7bfc5c5
Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe
...
Following bug 1209410, it was no longer used.
2015-10-02 18:44:34 +10:00
JW Wang
c4ae729fcf
Bug 1208933 - Remove AbstractMediaDecoder::NotifyWaitingForResourcesStatusChanged(). r=jya.
2015-09-27 21:02:18 +08:00
JW Wang
654d901ba3
Bug 1208930 - Remove usage of decoder monitor from MediaDecoder. r=jya.
2015-09-27 20:12:14 +08:00
JW Wang
1b07e1f412
Bug 1208922. Part 4 - remove AbstractMediaDecoder::GetCDMProxy() and devirtualize MediaDecoder::SetCDMProxy(). r=cpearce.
2015-09-27 18:59:08 +08:00
JW Wang
8ee22f20fd
Bug 1208922. Part 1 - add MediaDecoder::RequestCDMProxy() which resolves when a CDMProxy is set and capabilities are known. The client code won't need to handle the situation where a CDMProxy is set but capabilities are still unknown. This simplifies the client code a lot. r=cpearce.
2015-09-27 18:39:37 +08:00