Bug 900708 - Media Recording - Remove the Assertion in EncodedBufferCache.h. r=roc
authorRandy Lin <rlin@mozilla.com>
Mon, 05 Aug 2013 16:49:10 +0800
changeset 141775 9d9025fe6c52b8829cd16c09665f1d0bf52a3e60
parent 141774 81c29d7b95bdb0191f2a345519135272d07f30a9
child 141776 d44618837423fed28153b3ff6caf4b7c58a23052
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersroc
bugs900708
milestone26.0a1
Bug 900708 - Media Recording - Remove the Assertion in EncodedBufferCache.h. r=roc
content/media/EncodedBufferCache.h
--- a/content/media/EncodedBufferCache.h
+++ b/content/media/EncodedBufferCache.h
@@ -27,17 +27,16 @@ public:
   EncodedBufferCache(uint32_t aMaxMemoryStorage)
   : mFD(nullptr),
     mReentrantMonitor("EncodedBufferCache.Data.Monitor"),
     mDataSize(0),
     mMaxMemoryStorage(aMaxMemoryStorage),
     mTempFileEnabled(false) { }
   ~EncodedBufferCache()
   {
-    NS_ASSERTION(mDataSize == 0, "still has data in EncodedBuffers!");
   }
   // Append buffers in cache, check if the queue is too large then switch to write buffer to file system
   // aBuf will append to mEncodedBuffers or temporary File, aBuf also be cleared
   void AppendBuffer(nsTArray<uint8_t> & aBuf);
   // Read all buffer from memory or file System, also Remove the temporary file or clean the buffers in memory.
   already_AddRefed<nsIDOMBlob> ExtractBlob(const nsAString &aContentType);
 
 private: