Commit Graph

7 Commits

Author SHA1 Message Date
trav90 4db9fb1d37 Track "metadata duration" separately and mirror it to MediaDecoderReader 2018-07-25 07:49:21 +08:00
trav90 23c5c4b2da Remove "Diamond Problem" with MediaDecoder inheritance
MediaDecoder inherited from nsIObserver which inherits from nsISupport while also inheriting from AbstractMediaDecoder which itself inherits from nsISupport. This causes a "diamond problem", and prevents using some utility classes like NS_ProxyRelease or nsMainThreadPtrHandle. MediaDecoder will assert if destructed on anything but the main thread.
2018-07-25 07:14:34 +08:00
trav90 227622835c Rename MediaDecoder::OnDecodeThread to MediaDecoder::OnDecodeTaskQueue 2018-07-25 06:44:59 +08:00
trav90 19e0f7aa42 Rename OnStateMachineThread-like functions to reflect the fact that it's a task queue 2018-07-25 06:44:51 +08:00
trav90 fde7400175 Stop updating playback position from Ogg seek and remove MediaDecoder::UpdatePlaybackPosition
The ogg reader makes two adjustments to the seek time - the first is to clamp it between start and end time, which MDSM already does. The second is to subtract SEEK_OPUS_PREROLL from the target. If we wanted to, we could return this as the resolve value in the seek promise and handle the update in the MDSM. But DropVideoUpToSeekTarget should actually handle this just fine.
2018-07-25 01:03:05 +08:00
wolfbeast 02112270b5 Remove EME (Encrypted Media Extensions) DRM support.
This resolves #102.
2018-07-24 23:32:00 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00