Closed Bug 552578 Opened 15 years ago Closed 15 years ago

Frame queue wait logic spins unnecessarily while waiting for new frames

Categories

(Core :: Audio/Video, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- ?

People

(Reporter: kinetik, Assigned: kinetik)

Details

Attachments

(1 file)

The logic that waits for the frame queue to fill (http://mxr.mozilla.org/mozilla-central/source/content/media/ogg/nsOggDecoder.cpp#1549) waits for 1/2 the callback period. This causes us to waste CPU in some cases, and also causes playback problems for very high framerate videos (e.g. http://myrandomnode.dyndns.org:8080/~gmaxwell/cortest/dupes.ogv). As far as I can tell the timeout is unnecessary and the wait can be indefinite because any state changes being waited on will signal the monitor.
Attached patch patch v0Splinter Review
Assignee: nobody → kinetik
Attachment #432707 - Flags: review?(chris.double)
Attachment #432707 - Attachment is patch: true
Attachment #432707 - Attachment mime type: application/octet-stream → text/plain
Attachment #432707 - Flags: review?(chris.double) → review+
Keywords: checkin-needed
Whiteboard: [needs landing]
status1.9.2: --- → ?
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Keywords: checkin-needed
Whiteboard: [needs landing]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: