Bug 778105 - Fix an nsOggReader::GetBuffered() return value type mismatch. r=doublec

This commit is contained in:
Chris Pearce 2012-08-01 13:24:25 +12:00
parent 5160a4d6a5
commit 3747bd5737

View File

@ -1653,11 +1653,10 @@ nsresult nsOggReader::GetBuffered(nsTimeRanges* aBuffered, PRInt64 aStartTime)
}
else {
// Page is for a stream we don't know about (possibly a chained
// ogg), return an error.
//
// XXX Invalid cast of PageSyncResult to nsresult -- this has numeric
// value 1 and will pass an NS_SUCCEEDED() check (bug 778105)
return (nsresult)PAGE_SYNC_ERROR;
// ogg), return OK to abort the finding any further ranges. This
// prevents us searching through the rest of the media when we
// may not be able to extract timestamps from it.
return NS_OK;
}
}