Closed Bug 1185431 Opened 5 years ago Closed 5 years ago

dom/media/mediasource/test/test_TimestampOffset_mp4.html timing out intermittently

Categories

(Core :: Audio/Video, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: jya, Assigned: jya)

Details

Attachments

(1 file)

On 10.10 opt build, dom/media/mediasource/test/test_TimestampOffset_mp4.html timesout on try.

I can reproduce it on my mac pro, but only with non-debug, non-optimized build.
So what happens is that the first call to RequestAudioData is rejected with WAITING_FOR_DATA.

The MDSM then starts to decode video, and will do so for 10 frames.

Only then will it call MediaFormatReader::WaitForData(kAudio).

As such, there can be a significant time between the time RequestAudioData and WaitForData calls.

If the mediasource receives data between two two calls and not after the WaitForData call, then the waiting promise isn't resolved ; leading to a stall.
Assignee: nobody → jyavenard
Attachment #8635882 - Flags: review?(cpearce) → review+
https://hg.mozilla.org/mozilla-central/rev/07c28e25727f
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.