Commit Graph

11 Commits

Author SHA1 Message Date
Alastor Wu
a9f36ddd2d Bug 1402681 - part2 : add log. r=jya
MozReview-Commit-ID: 8qINxSCKrvg

--HG--
extra : rebase_source : 962ec20a7882c1854b0b3ea7a8aa6be65c9d0247
2017-09-26 17:48:39 +08:00
Chris Pearce
f2902bdf82 Bug 1390406 - Remove unnecessary includes in dom/media/mediasource. r=jya
MozReview-Commit-ID: 1aTncGfBicu

--HG--
extra : rebase_source : 8ad085eb81d195732c385718c283b4752e5e3c80
2017-08-15 16:13:00 +12:00
JW Wang
5d7a4ae4c9 Bug 1362258 - Reduce ref-counting overhead of TrackBuffersManager::AppendData(). r=jya
http://searchfox.org/mozilla-central/rev/6580dd9a4eb0224773897388dba2ddf5ed7f4216/dom/media/mediasource/TrackBuffersManager.cpp#127

We can pass already_AddRefed<MediaByteBuffer> to InvokeAsync to avoid unnecessary AddRef/Release pairs.

MozReview-Commit-ID: ErXompyX8ua

--HG--
extra : rebase_source : f086e4ef5fda9f0dca8bfb0e2b4c74967e3f8323
2017-05-05 10:27:51 +08:00
Gerald Squelart
353902bada Bug 1313497 - AppendBufferTask can take SourceBufferAttributes by const& - r=jya
A small optimization found while working on the previous patch.

MozReview-Commit-ID: 4w2LI5mqUvS

--HG--
extra : rebase_source : 70b9ad73c57da5079df607b5176fcfa45ed42e81
2016-11-13 16:39:47 +11:00
Jean-Yves Avenard
162fa5f03b Bug 1299072: P11. Use MediaResult with AppendBuffer promises. r=gerald
Will allow to pass detailed failure causes in a followup patch.

MozReview-Commit-ID: 5yGjzZNcYWg

--HG--
extra : rebase_source : fdd76c98900320352ee3c349de1c40df29122ca9
2016-09-12 08:54:10 +10:00
Jean-Yves Avenard
94d52db9f7 Bug 1264694: [MSE] P2. Clear mTaskQueue early when no longer required. r=jwwang
We need to ensure that the MSE TaskQueue gets shutdown as soon as possible and not wait for the MediaSource parent to be destroyed by the cycle collector.
XPCOM shutdown will deadlock if any SharedThreadPool are still in use, and it possible for the cycle collector to only occur after xpcom has shutdown.
So it's important to ensure mTaskQueue is cleared when the MediaSourceDecoder has been shutdown.

This is done by queueing a new DetachTask that will clear mTaskQueue when run.

MozReview-Commit-ID: C3FXcRtq1wy

--HG--
extra : rebase_source : 79a7c5cb451655c4679b9d4e11d0b5ca0d9814b9
2016-05-16 18:30:19 +08:00
Ryan VanderMeulen
d665e900e2 Backed out changesets 5f4c3f3c188b, 0114f37a7742, and 7a336216b9c4 (bug 1264694) for web-platform-test asserts/crashes. 2016-05-17 11:28:59 -04:00
Jean-Yves Avenard
62469ee531 Bug 1264694: [MSE] P2. Clear mTaskQueue early when no longer required. r=jwwang
We need to ensure that the MSE TaskQueue gets shutdown as soon as possible and not wait for the MediaSource parent to be destroyed by the cycle collector.
XPCOM shutdown will deadlock if any SharedThreadPool are still in use, and it possible for the cycle collector to only occur after xpcom has shutdown.
So it's important to ensure mTaskQueue is cleared when the MediaSourceDecoder has been shutdown.

This is done by queueing a new DetachTask that will clear mTaskQueue when run.

MozReview-Commit-ID: C3FXcRtq1wy

--HG--
extra : rebase_source : 38c0b5548b32e89b0994704c1318ff77fba76eba
2016-05-16 18:30:19 +08:00
Sebastian Hengst
c470acb725 Backed out changeset aa4ee7364898 (bug 1264694) for frequent crash in mediasource-append-buffer.html [@ mozilla::TrackBuffersManager::ProcessTasks()] on OSX 10.10 after hitting its new assertion. r=backout 2016-05-17 09:50:38 +02:00
Jean-Yves Avenard
8449a3f79b Bug 1264694: [MSE] P1. Clear mTaskQueue early when no longer required. r=jwwang
We need to ensure that the MSE TaskQueue gets shutdown as soon as possible and not wait for the MediaSource parent to be destroyed by the cycle collector.
XPCOM shutdown will deadlock if any SharedThreadPool are still in use, and it possible for the cycle collector to only occur after xpcom has shutdown.
So it's important to ensure mTaskQueue is cleared when the MediaSourceDecoder has been shutdown.

This is done by queueing a new DetachTask that will clear mTaskQueue when run.

MozReview-Commit-ID: C3FXcRtq1wy

--HG--
extra : rebase_source : 034319517bd8b90668b6311efb54c3a1a864cb5b
2016-05-16 18:30:19 +08:00
Jean-Yves Avenard
5f3b4ca5d5 Bug 1259274: [MSE] P3. Refactor handling of tasks so they only ever run concurrently. r=gerald
MozReview-Commit-ID: 1U8r82kTR0t

--HG--
extra : rebase_source : 0646125364bee89f37cfff426c1034a6feb3a516
2016-03-27 20:20:40 +11:00