Closed Bug 1212176 Opened 9 years ago Closed 9 years ago

Remove arguments provided to MediaDataDemuxer::NotifyDataArrived

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(1 file)

NotifyDataArrived is an extremely unreliable mechanism to parse data.

When playing a plain video or audio file (such as MP3 or demuxer), the MDSM will typically start downloading the file to determine the download bitrate.

This causes the associated MediaResource to fire NotifyDataArrived before the MediaDataDemuxer has even been initialized.
If the file was small enough, it would be entirely cached before the MediaFormatReader attempts to use the demuxer and no NotifyDataArrived would even be called on the demuxer.

We should make it clearer by making the description of MediaDataDemuxer::NotifyDataArrived more explicit, and even remove the arguments as they ultimately serve no purpose being so unreliable.
Assignee: nobody → jyavenard
Be more explicit on what it does and how it should be used.
Attachment #8670576 - Flags: review?(cpearce)
Attachment #8670576 - Flags: review?(cpearce) → review+
https://hg.mozilla.org/mozilla-central/rev/af903bae2619
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: