From 6d80943796d5fdc19be976561c91b7fc205f2aea Mon Sep 17 00:00:00 2001 From: Sam Lin Date: Sat, 28 Jun 2014 00:16:27 +0800 Subject: [PATCH] Bug 101741 - minor fix for the wrong usage of ChangeExplicitBlockerCount in MediaRecorder. 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 cdc03829e603..e6f96e63f960 100644 --- a/content/media/MediaRecorder.cpp +++ b/content/media/MediaRecorder.cpp @@ -289,7 +289,7 @@ public: MOZ_ASSERT(NS_IsMainThread()); NS_ENSURE_TRUE(mTrackUnionStream, NS_ERROR_FAILURE); - mTrackUnionStream->ChangeExplicitBlockerCount(-1); + mTrackUnionStream->ChangeExplicitBlockerCount(1); return NS_OK; } @@ -300,7 +300,7 @@ public: MOZ_ASSERT(NS_IsMainThread()); NS_ENSURE_TRUE(mTrackUnionStream, NS_ERROR_FAILURE); - mTrackUnionStream->ChangeExplicitBlockerCount(1); + mTrackUnionStream->ChangeExplicitBlockerCount(-1); return NS_OK; }