Bustage fix for bug 570904. a=bustage-fix

This commit is contained in:
Matthew Gregan 2010-09-14 20:23:33 +12:00
Родитель 77f407a58b
Коммит 8be3c96056
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -753,7 +753,7 @@ nsresult nsWebMReader::GetBuffered(nsTimeRanges* aBuffered, PRInt64 aStartTime)
// Special case completely cached files. This also handles local files.
if (stream->IsDataCachedToEndOfStream(0)) {
uint64_t duration = 0;
if (nestegg_duration(mContext, &duration) == 0) {
if (mContext && nestegg_duration(mContext, &duration) == 0) {
aBuffered->Add(aStartTime / MS_PER_S, duration / NS_PER_S);
}
} else {