Closed Bug 778105 Opened 12 years ago Closed 12 years ago

nsOggReader::GetBuffered treats PageSyncResult as nsresult

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: ayg, Unassigned)

References

Details

Attachments

(1 file)

There's a "return PAGE_SYNC_ERROR;" in there, added by bug 584615. This is wrong -- PAGE_SYNC_ERROR is equal to 1, which isn't a valid nsresult, and will be interpreted as successful.
Thanks for filing this bug. Thankfully is return value doesn't propagate all the way up to JS. We hit this case when we detect a page from a stream we've not encountered before (like a new link in a chain or a live stream). I think we can just return NS_OK in this case.
Attached patch Patch (deleted) — Splinter Review
Attachment #647736 - Flags: review?(chris.double)
Comment on attachment 647736 [details] [diff] [review] Patch Review of attachment 647736 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/media/ogg/nsOggReader.cpp @@ +1621,5 @@ > continue; > } > else { > // Page is for a stream we don't know about (possibly a chained > // ogg), return an error. Might want to change the comment since we're no longer returning an error.
Attachment #647736 - Flags: review?(chris.double) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: