Bug 1091008 - Remove special handling for MSE in HTMLMediaElement::Buffered. r=cajbir

The same code will now be reached by invoking this method on the decoder.
This commit is contained in:
Bobby Holley
2014-11-05 10:08:59 +01:00
parent 2b4c8928a9
commit bb8327bd40
7 changed files with 39 additions and 54 deletions

View File

@@ -3678,9 +3678,7 @@ HTMLMediaElement::Buffered() const
{
nsRefPtr<TimeRanges> ranges = new TimeRanges();
if (mReadyState > nsIDOMHTMLMediaElement::HAVE_NOTHING) {
if (mMediaSource) {
mMediaSource->GetBuffered(ranges);
} else if (mDecoder) {
if (mDecoder) {
// If GetBuffered fails we ignore the error result and just return the
// time ranges we found up till the error.
mDecoder->GetBuffered(ranges);