From 432a24cf03b9ebdc1baafaaedc74968d52df471b Mon Sep 17 00:00:00 2001 From: Matthew Gregan Date: Tue, 14 Sep 2010 20:23:33 +1200 Subject: [PATCH] Bustage fix for bug 570904. a=bustage-fix --- content/media/webm/nsWebMReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/media/webm/nsWebMReader.cpp b/content/media/webm/nsWebMReader.cpp index 6d35097ef32..7cc38bb6652 100644 --- a/content/media/webm/nsWebMReader.cpp +++ b/content/media/webm/nsWebMReader.cpp @@ -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 {