Граф коммитов

1151 Коммитов

Автор SHA1 Сообщение Дата
Videet 01ad0f3438 Bug 547707: replaced hardcoded strings by definitions in nsMimeTypes.h r=gerald
MozReview-Commit-ID: 6f85pRUe8Tg

--HG--
extra : rebase_source : f41797530bf9211f3fe875a5da860132f5bd2c7c
2018-03-06 17:43:57 +01:00
Miko Mynttinen 280cf13e36 Bug 1441779 - Part 1: Change nsTArray<SourceBufferTask> to nsTArray<RefPtr<SourceBufferTask>> r=gerald
MozReview-Commit-ID: 8lV4Pp9p7Ch

--HG--
extra : rebase_source : b149b6ed15f88b9ee8af8ec553a57a8ccec3dafd
2018-03-01 11:55:18 +01:00
JW Wang d201fcefe3 Bug 1427931. P1 - remove MediaDecoder::PinForSeek/UnpinForSeek. r=bechen,gerald
PinForSeek() is called only when playback reaches the end. In other words,
it is not called for most cases of seeking. It should be OK not to call it at
all during seeking.

MozReview-Commit-ID: 1xXX1321bO7

--HG--
extra : rebase_source : df8ba3f59da2a337b456546af4b54abaddfe38a9
extra : intermediate-source : 0a70419f9ce639ac0784a0632db4598d6be511f8
extra : source : bfddad9b922386c91fcfa7657a7ac274991d15f4
2017-12-19 17:56:52 +08:00
JW Wang 79b5f2dd2e Bug 1425996 - fix build error: unused variable 'rv'. r=gerald
MozReview-Commit-ID: 7MhsSWbxB3z

--HG--
extra : rebase_source : 81207a1e5b663314295f2f95afd4b726ffe8f12d
2017-12-21 12:12:42 +08:00
Jean-Yves Avenard b8cd152890 Bug 1425904 - Make the monitor refcounted. r=gerald
To prevent another heap allocation, we re-use the TaskQueue internal monitor.
As a TaskQueue is refcounted, and the MozPromise::Then() holds a reference to the taskqueue, it ensures that the monitor isn't immediately destroyed when Await() execution unwinds.
Instead it will live until either the lambda or Await() completes, whichever comes last.

MozReview-Commit-ID: EeG6LLAiiyp

--HG--
extra : rebase_source : c5872733c0444737682632dd10d8844c44c4d429
2017-12-19 11:11:23 +01:00
Jean-Yves Avenard 998881b06e Bug 1404997 - P24. Make AutoTaskQueue deliver runnables to nsIEventTarget. r=gerald
Similar to bug 1300118 for TaskQueue.

MozReview-Commit-ID: 8jIifvs2r4U

--HG--
extra : rebase_source : f1c8ab791fa853c4d69cfb8791a418654a5d4142
2017-12-15 18:14:02 +01:00
Jean-Yves Avenard ec469fdddc Bug 1425608 - Don't delete AutoTaskQueue::mTaskQueue on the main thread. r=gerald
MozReview-Commit-ID: I2R4OYB0Jyc

--HG--
extra : rebase_source : 1b8c1caffef91b5888b04b336bd20a74df6711a1
2017-12-16 00:46:49 +01:00
JW Wang 4b584fc48b Bug 1424973. P2 - remove unused MediaDecoder::IsLiveStream() and friends. r=bechen,gerald
MozReview-Commit-ID: Hf3QAFoq97x

--HG--
extra : rebase_source : 0cbfaaec37dea3ab0ab4ad0622bae8056e383ec0
extra : intermediate-source : b591e2e854d0c480f889aa6ebe87f4892ffc0cdc
extra : source : 13db1fcd03825077382e41235c02d1f8ecc5edf2
2017-12-06 16:24:31 +08:00
JW Wang bb45ff010e Bug 1424973. P1 - propagate 'IsLiveStream' changes to MDSM in MediaDecoder subclasses. r=bechen,gerald
MozReview-Commit-ID: 8wSZf7pRERP

--HG--
extra : rebase_source : c2bea725064f5ad2e1cd1de1b8b9c19994bad89b
extra : intermediate-source : 54da627350d8a6276f9ad5d14a7191cb05957901
extra : source : dc582401401272df3150fb639bdf0ad05d749a06
2017-12-06 16:00:20 +08:00
Sylvestre Ledru 9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Gerald Squelart c5aeab4f69 Bug 1407810 - Use DDMOZ_LOG in media stack - r=jwwang
Mostly-mechanical replacement of MOZ_LOG with DDMOZ_LOG, usually just removing
the class name and `this` pointer (as they are already implicitly recorded).
Some files needed a bit more work when logging was done from helper classes or
static functions.

MozReview-Commit-ID: IeJJmzYqWMQ

--HG--
extra : rebase_source : 94200838dcdaf6c3bda9de30042ce2d307237eef
2017-10-13 16:31:59 +11:00
Gerald Squelart 1b357db99b Bug 1407810 - Use DDLogger in media stack - r=jwwang
Mostly-mechanical additions:
- Log constructions&destructions, usually by just inheriting from
  DecoderDoctorLifeLogger, otherwise with explicit log commands (for internal
  classes for which DecoderDoctorTraits can't be specialized),
- Log links between most objects, e.g.: Media element -> decoder -> state
  machine -> reader -> demuxer -> resource, etc.

And logging some important properties and events (JS events, duration change,
frames being decoded, etc.)

More will be added later on, from just converting MOZ_LOGs, and as needed.

MozReview-Commit-ID: KgNhHSz35t0

--HG--
extra : rebase_source : dd7206e350e32671adc6f3b9e54ebf777251de2c
2017-10-10 17:55:27 +11:00
Chris Pearce fb207e4f8a Bug 1422662 - Move BaseMediaResource::Close() into MediaResource class. r=jwwang
For the project to export Gecko's media stack and import it into Servo,
I need a way to shutdown an abstract MediaResource. So I'd like to move
BaseMediaResource::Close() up into MediaResource class.

MozReview-Commit-ID: 9JmxJPs02PN

--HG--
extra : rebase_source : e61cc1a3a79b3e4ca7e9fa86a602e6e26044e247
2017-12-04 16:29:35 +13:00
JW Wang 855a4bc6c4 Bug 1421875. P3 - remove MediaDecoder::DownloadProgressed() which is basically a one-line call to GetOwner()->DownloadProgressed(). r=bechen,gerald
Also devirtualize ChannelMediaDecoder::DownloadProgressed() and move it to private.

MozReview-Commit-ID: ITv3ISRbN5t

--HG--
extra : rebase_source : aa75bc11fc1a4af8df15db9224928b1f02267b80
2017-11-30 11:21:14 +08:00
JW Wang 7c3304f247 Bug 1421875. P2 - move MediaDecoder::NotifyDataArrived() down the class hierarchy. r=bechen,gerald
For it is never used by ChannelMediaDecoder.

MozReview-Commit-ID: Jtvlj0iwTm7

--HG--
extra : rebase_source : 8582486e0403cf78366adfdc0c11fab42fedb1c9
2017-11-30 11:07:13 +08:00
Fernando Jimenez 29f504c683 Bug 1421343 - MediaSourceDecoder uses SourceBuffer without including its header. r=cpearce
MozReview-Commit-ID: 3hnmMwzp1xH

--HG--
extra : rebase_source : 98dbebb34f84bb6922efc729411dc52e8584abb1
2017-11-29 09:00:53 +01:00
Margareta Eliza Balazs 112b2cef30 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-20 11:47:28 +02:00
Fernando Jimenez Moreno 4fa89640c0 Bug 1418244 - Add missing headers to MSE SourceBufferResource and TrackBuffersManager. r=cpearce 2017-11-19 15:30:30 -05:00
Alfredo.Yang be0c9536ec Bug 1417795 - remove mp4_demuxer namespace part5. r=kinetik
MozReview-Commit-ID: Fo5p3kPyxAR

--HG--
rename : dom/media/mp4/Stream.h => dom/media/mp4/ByteStream.h
rename : dom/media/mp4/Interval.h => dom/media/mp4/MP4Interval.h
extra : rebase_source : b937a231ef0280ad03195cf98b15ecd080a20f49
2017-11-17 14:30:09 +08:00
Alfredo.Yang d6a0eb9d74 Bug 1417795 - remove mp4_demuxer namespace part3. r=kinetik
MozReview-Commit-ID: 9fM2VjY4Ckk

--HG--
extra : rebase_source : 24d971d44e1d9bd8b1589b4b542d792f75df376d
2017-11-17 08:53:25 +08:00
Alfredo.Yang a0056437d9 Bug 1417795 - remove mp4_demuxer namespace part2. r=kinetik
MozReview-Commit-ID: F8z1QW6WuUU

--HG--
extra : rebase_source : 9d137794bb1c6465da1d6b7aa6ba50265172ada3
2017-11-16 16:24:22 +08:00
Alfredo.Yang a2cd247c8f Bug 1417795 - remove mp4_demuxer namespace part1. r=kinetik
MozReview-Commit-ID: 6YrURoOq2wk

--HG--
extra : rebase_source : 3ea026780b210b42bd41163c654580a920d30181
2017-11-16 15:57:15 +08:00
JW Wang 1f62c1d92b Bug 1417869. P3 - pass descriptive messages to NetworkError(). r=jya
MozReview-Commit-ID: 6yaFJvXG3g8

--HG--
extra : rebase_source : 2d1c851098be7eb880a01432c504c6db96d86756
extra : source : a30f9699f49687b23d4ccf955d7a0af8ce0c7653
2017-11-17 11:07:30 +08:00
JW Wang 5a99c6b197 Bug 1417774 - remove unused MediaResource::Tell(). r=bechen
MozReview-Commit-ID: 3qlP4sSh9kM

--HG--
extra : rebase_source : 4002fec6f8c43abb640f9206cd715f3ecb02b373
2017-11-15 17:18:52 +08:00
Andrea Marchesini 4b1b084ce7 Bug 1416724 - part 3 - AbstractThread::Dispatch return value check in dom/media, r=jwwang 2017-11-15 07:58:03 +01:00
shindli 385fb3428c Backed out 4 changesets (bug 1416724) for failing /builds/worker/workspace/build/src/dom/media/hls/HLSDemuxer.cpp:89:5 r=backout on a CLOSED TREE
Backed out changeset 45352aa4319d (bug 1416724)
Backed out changeset 01d1e5263bcd (bug 1416724)
Backed out changeset bc854c315ec8 (bug 1416724)
Backed out changeset 35a50167485d (bug 1416724)
2017-11-15 09:49:04 +02:00
Andrea Marchesini 642cdd108b Bug 1416724 - part 3 - AbstractThread::Dispatch return value check in dom/media, r=jwwang 2017-11-15 07:58:03 +01:00
Andrea Marchesini 3f760d8258 Bug 1415564 - TaskQueue::Dispatch should return an error if failed, r=smaug 2017-11-09 01:43:40 +01:00
Sebastian Hengst d61954557d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Ai6Y5GGfkfT
2017-11-04 10:58:24 +01:00
Jon Coppeard fd86611724 Bug 1413993 - Remove unused USEC_PER_SEC constant r=jya
This constant is #defined in some MacOS system headers which causes compile errors.
2017-11-03 10:25:26 +00:00
Jean-Yves Avenard acabf2903c Bug 1295886 - P15. Enable FLAC mochitest on Android. r=gerald
MozReview-Commit-ID: 83mJleAMVro

--HG--
extra : rebase_source : ba445777b70a1b700eb21eb9809fecea76609598
2017-11-02 02:56:04 +01:00
Alastor Wu c683d23150 Bug 1362440 - part4 : parsing entire content to decide whether it's init segment. r=jya
The spec [1] defines what's the init segment, and the parser would return error
if the format is not correct.

[1] https://w3c.github.io/media-source/webm-byte-stream-format.html

MozReview-Commit-ID: 3nFHHdn5b89

--HG--
extra : rebase_source : 66fe592958801c4f9e2115f7729df2b9ece55ac3
2017-10-30 17:48:43 +08:00
Alastor Wu 65c50bf89e Bug 1362440 - part3 : add tests. r=jya
MozReview-Commit-ID: C4mXuPsMaF4

--HG--
extra : rebase_source : 11b69bde40b1ca336e2b9272aa2ec26c0e78507d
2017-10-30 17:48:35 +08:00
Alastor Wu 7440c83cae Bug 1362440 - part2 : parsing entire content to decide whether it's media segment. r=kinetik
The spec [1] defines what's the media segment, and the parser would return error
if the format is not correct.

[1] https://w3c.github.io/media-source/webm-byte-stream-format.html

MozReview-Commit-ID: 4hq59Pywz2t

--HG--
extra : rebase_source : 1136d2a673f11d612e0eb711db6affdce42bb525
2017-10-30 15:27:30 +08:00
Alfredo.Yang fc4a02e7c7 Bug 1411815 - use BufferReader instead of ByteReader in ContainerParser. r=kinetik
MozReview-Commit-ID: DB2J7w8PpAJ

--HG--
extra : rebase_source : 113b9832df3ac223c9adbcaa44f224d0c792892b
2017-10-19 11:12:48 +08:00
James Cheng ed18e57446 Bug 1407919 - Part3 - Add a gtest for testing the extraction function. r=gerald
MozReview-Commit-ID: 7CocV0rLtk7

--HG--
extra : rebase_source : 5fd1ac5e5623b2e4637b0e78541582432a87ac44
2017-10-13 21:17:35 +08:00
Jean-Yves Avenard 38b456068a Bug 1409272 - P2. Pre-roll vorbis by 80ms when seeking. r=gerald
The value by which we pre-roll is inconsequential, so long as we seek to the previous packet than the one we want. So 80ms will do.

MozReview-Commit-ID: 8iPOtjReZnb

--HG--
extra : rebase_source : 42908c6afc84cf783356fb7311ffe99b4ec76d96
2017-10-17 16:07:26 +02:00
Sebastian Hengst 34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Alastor Wu c8a9b504ed Bug 1408987 - Part 2: Make mManager thread-safe. r=jya
mManager would be accessed in both main thread and task queue, and be set on task
queue, so we need to make sure it's thread-safe.

MozReview-Commit-ID: m76KeEsDgB
2017-10-17 16:53:54 +08:00
Alastor Wu bbdf374f35 Bug 1408987 - Part 1: Add OnTaskQueue() assertion to clarify functions' running thread. r=jya
MozReview-Commit-ID: 36sqB5SlOd
2017-10-17 15:58:44 +08:00
Alastor Wu def6113401 Bug 1409274 - remove the lock for SourceBufferTaskQueue. r=jya
It would only be accessed on task queue now, so we don't need to lock it.

MozReview-Commit-ID: 6jd36TQW4aA

--HG--
extra : rebase_source : e8bb53a226154312496149ab8f6b00dead49a3b6
2017-10-17 15:46:26 +08:00
Jean-Yves Avenard e891f573a5 Bug 1407940 - P2. Only ever access mTaskQueue in a thread-safe fashion. r=alwu,gerald
mTaskQueue is only read on the main thread, but read and written on the demuxer's taskqueue. We need to ensure that accesses are synchronised.

MozReview-Commit-ID: Gbc15iYgZOe

--HG--
extra : rebase_source : 006ff3f73c9895fa2f29e56123e690cdf66fe2c5
2017-10-12 13:30:47 +02:00
Jean-Yves Avenard 51e48cb035 Bug 1407940 - P1. Use Mutex in place of Monitor. r=gerald
MozReview-Commit-ID: Dy2WhS0YOq1

--HG--
extra : rebase_source : 9ce10f7c7c811d0f73ef39a6439cac92686f9793
2017-10-12 11:15:20 +02:00
Alastor Wu b8237a2029 Bug 1247189 - part5 : use IsCurrentThreadIn() as a main criteria to determine whether we're on the task queue or not. r=jya
The use of the TrackBuffersManager once detached is explictly forbidden, as such
OnTaskQueue() can only be used before the DetachTask ran: we now strongly assert
as such.

MozReview-Commit-ID: ycOI4QRElb

--HG--
extra : rebase_source : ecce8ac75587470c15268ab729b068f049702a8a
2017-10-12 10:49:25 +08:00
Alastor Wu b4c4772190 Bug 1247189 - part4 : ensure we always detach TBM from demuxers. r=jya
Ensure the TBM would always be detached from demuxers, before calling
TBM::detach().

MozReview-Commit-ID: DLWZHB3M3GG

--HG--
extra : rebase_source : 9e455022ba9360fb549222e9ad1238a3ae9d88ad
2017-10-12 10:49:21 +08:00
Alastor Wu 023e34cbe4 Bug 1247189 - part3 : don't process any task after detached. r=jya
From [1], the task was executed after finished detach task. It would be caused
by queuing two detach tasks in the task queue.

If the previous detach task is still waiting in the task queue when we're calling
the second detach(), then we might have two detach tasks in the queue.

[1] https://treeherder.mozilla.org/logviewer.html#?job_id=134315866&repo=try&lineNumber=2540

MozReview-Commit-ID: HohgKqeZy0s

--HG--
extra : rebase_source : 0d20f1b8648acaf2ed8e75b2631e905629c2abaf
2017-10-12 10:49:10 +08:00
Alastor Wu 5a164c7e06 Bug 1247189 - part2 : remove reference to TrackBuffersManagers once detached. r=jya
Should never access the TrackBuffersManager once the SourceBuffer has been detached.

MozReview-Commit-ID: EgVINj9B1vZ

--HG--
extra : rebase_source : 4b4dc3e5c4b507fe4cc40e80f507b575a8b87eb3
2017-10-11 10:55:21 +08:00
Alastor Wu d9f5f478d9 Bug 1247189 - part1 : should detach TBM after detaching it from demuxers. r=jya
After detaching TBM, we should not access it anymore. So we should finish all
other related detaching process, before detaching TBM.

MozReview-Commit-ID: 8bNzqXVHVyy

--HG--
extra : rebase_source : e135eb3d0fd4e5c41bbac4ebfc8d6fcbd1b32d5b
2017-10-11 10:49:05 +08:00
Ryan VanderMeulen 0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Tom Ritter 701ee70a22 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : fe434db73a8da686391462c12b91648348abcdc9
2017-10-09 15:01:48 -05:00