Bug 877193 - Reduce memory usage for RTSP streaming. r=sworkman
authorEthan Tseng <ettseng@mozilla.com>
Wed, 16 Apr 2014 21:07:17 +0800
changeset 179264 234646463e96462b42596a899f8228d6ba20d27e
parent 179263 496a5b50e7a9ad1e73729797ba63b09fcf24f03b
child 179265 28d75105f7c853803bdd1afb16965fc47b07eb81
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerssworkman
bugs877193
milestone31.0a1
Bug 877193 - Reduce memory usage for RTSP streaming. r=sworkman
content/media/RtspMediaResource.cpp
--- a/content/media/RtspMediaResource.cpp
+++ b/content/media/RtspMediaResource.cpp
@@ -32,17 +32,17 @@ namespace mozilla {
 
 /* class RtspTrackBuffer: a ring buffer implementation for audio/video track
  * un-decoded data.
  * The ring buffer is divided into BUFFER_SLOT_NUM slots,
  * and each slot's size is fixed(mSlotSize).
  * Even though the ring buffer is divided into fixed size slots, it still can
  * store the data which size is larger than one slot size.
  * */
-#define BUFFER_SLOT_NUM 8192
+#define BUFFER_SLOT_NUM 512
 #define BUFFER_SLOT_DEFAULT_SIZE 256
 #define BUFFER_SLOT_MAX_SIZE 8192
 #define BUFFER_SLOT_INVALID -1
 #define BUFFER_SLOT_EMPTY 0
 
 struct BufferSlotData {
   int32_t mLength;
   uint64_t mTime;