From b275c8b757d501ec39720059abd147b3df2bda41 Mon Sep 17 00:00:00 2001 From: Randy Lin Date: Fri, 3 Jan 2014 15:24:57 +0800 Subject: [PATCH] Bug 952052 - Avoid release Session object in Media Encoder thread. r=roc --- content/media/MediaRecorder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/media/MediaRecorder.cpp b/content/media/MediaRecorder.cpp index 9355794ab0b2..7b5abe337e6e 100644 --- a/content/media/MediaRecorder.cpp +++ b/content/media/MediaRecorder.cpp @@ -97,7 +97,7 @@ class MediaRecorder::Session: public nsIObserver nsRefPtr mSession; }; - // Record thread task. + // Record thread task and it run in Media Encoder thread. // Fetch encoded Audio/Video data from MediaEncoder. class ExtractRunnable : public nsRunnable { @@ -114,7 +114,7 @@ class MediaRecorder::Session: public nsIObserver } private: - nsRefPtr mSession; + Session* mSession; }; // For Ensure recorder has tracks to record.