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

20 Коммитов

Автор SHA1 Сообщение Дата
Chun-Min Chang 949167ee63 Bug 1500713: P4 - Return NullableTimeUnit from MP3TrackDemuxer::Duration(). r=jya
Differential Revision: https://phabricator.services.mozilla.com/D24302

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:29 +00:00
Chun-Min Chang 9a23c18c8f Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik,jya
Depends on D19097

Differential Revision: https://phabricator.services.mozilla.com/D22048

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:28 +00:00
arthur.iakab b6deb00c93 Backed out 4 changesets (bug 1500713) on request of jcristau for causing Bug 1535603 a=Backout
Backed out changeset 5d0cad2c99a4 (bug 1500713)
Backed out changeset f96a12eedd89 (bug 1500713)
Backed out changeset 2633cea7d119 (bug 1500713)
Backed out changeset 49c4cfbf2bee (bug 1500713)
2019-03-15 15:50:20 +02:00
Chun-Min Chang f251af73b4 Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D22048

--HG--
extra : moz-landing-system : lando
2019-03-14 17:18:45 +00:00
Dorel Luca 8a746eed7d Backed out 4 changesets (bug 1500713) for build bustage
Backed out changeset d25ff3b04eeb (bug 1500713)
Backed out changeset 98265537ef34 (bug 1500713)
Backed out changeset 670b24af24d4 (bug 1500713)
Backed out changeset 7e5fa7b1f7bc (bug 1500713)
2019-03-12 07:16:59 +02:00
Chun-Min Chang fe833872ac Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik
Depends on D19097

Differential Revision: https://phabricator.services.mozilla.com/D22048

--HG--
extra : moz-landing-system : lando
2019-03-09 01:09:37 +00:00
Sylvestre Ledru 804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Nathan Froyd a31fa9e19c Bug 1453437 - return UniquePtr from MediaRawData::CreateWriter; r=gerald
Returning UniquePtr is nicer than returning raw pointers, and has the
nice side effect of forcing us to clean up the uses of nsAutoPtr that
were hanging about.
2018-04-12 15:28:21 -04:00
Bryce Van Dyk 18af97a234 Bug 1432195 - Accept Mp3 streams with only 2 frames if both are valid. r=JanH
MozReview-Commit-ID: Gl5mgNuzZTt

--HG--
extra : rebase_source : 5668bbde8265887f7b2e4ed40c18cf41334c38ed
2018-02-26 19:07:46 -05:00
Chun-Min Chang f23d95372a Bug 1419736 - Calculate the mp3 duration by bitrate if it's CBR; r=jya
MozReview-Commit-ID: GftmYg50FTV

--HG--
extra : rebase_source : b820c4ef80679e8d83843565c92804f0b9ce9f81
2017-12-19 15:14:57 +08: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
Alfredo.Yang d5ba0f15df Bug 1419682 - use unwrap_or() instead of map() lambda. r=kinetik
MozReview-Commit-ID: Er1CjuPDAF5

--HG--
extra : rebase_source : d8b924087272351901b07877d126ac85b7fdbfc7
2017-11-22 17:15:37 +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 8da0342978 Bug 1411821 - use BufferReader instead of ByteReader in MP3 parser. r=kinetik
MozReview-Commit-ID: BpfCZUG7C6c

--HG--
extra : rebase_source : 45716111d62faac68499f4c369e3cb948de190ce
2017-10-20 11:54:29 +08:00
Gerald Squelart b0442493e5 Bug 1405531 - Remove unused MediaDataDemuxer::HasTrackType - r=jwwang
The only actual code use in MediaSourceDemuxer can trivially be folded into
its caller GetNumberTracks in the same class.

MozReview-Commit-ID: E6zh98zmJwJ

--HG--
extra : rebase_source : 9358dc37523d6cd7c1a4d5ec62a790db6a092063
2017-10-04 11:40:29 +11:00
Jean-Yves Avenard 9349efba14 Bug 1396515: Fix incorrect && and || operator placements. r=sylvestre
Includes some side 80 columns fix.

MozReview-Commit-ID: IXRoQfM0Hjc

--HG--
extra : rebase_source : 918cf87b2ce82c8de245dcb23cc359289ac5f21f
2017-09-04 11:27:43 +02:00
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Jan Henning 0b677ecf4b Bug 1168435 - Part 3 - Remove separate MP3 name space. r=jya
MozReview-Commit-ID: D876PpLd93C

--HG--
extra : rebase_source : cd65b9ed78674e601493f7d0145bf038e0e48d0b
2017-06-15 15:32:20 +02:00
Jan Henning c723881c4e Bug 1168435 - Part 2 - Refactor new MP3 frame parser out of the demuxer. r=jya
MozReview-Commit-ID: 7ZwjtMpuhRR

--HG--
rename : dom/media/MP3Decoder.cpp => dom/media/mp3/MP3Decoder.cpp
rename : dom/media/MP3Decoder.h => dom/media/mp3/MP3Decoder.h
rename : dom/media/MP3Demuxer.cpp => dom/media/mp3/MP3Demuxer.cpp
rename : dom/media/MP3Demuxer.h => dom/media/mp3/MP3Demuxer.h
rename : dom/media/MP3Demuxer.cpp => dom/media/mp3/MP3FrameParser.cpp
rename : dom/media/MP3Demuxer.h => dom/media/mp3/MP3FrameParser.h
extra : rebase_source : 6b4f7e9784e0d624ca7fef42958138c2a3e69b84
2017-06-10 20:43:14 +02:00