diff options
Diffstat (limited to 'dom/html/HTMLMediaElement.cpp')
-rw-r--r-- | dom/html/HTMLMediaElement.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 75bfafe1b..d9e500a49 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -3032,6 +3032,9 @@ public: { NS_ASSERTION(NS_IsMainThread(), "Should be on main thread."); + if (!mElement) { + return; + } mElement->NotifyMediaStreamTracksAvailable(aStream); } private: |