Bug 998239 - [RTSP] Follow up of 877193 to refine RtspTrackBuffer size. r=sworkman
authorEthan Tseng <ettseng@mozilla.com>
Fri, 18 Apr 2014 15:54:00 +0800
changeset 179998 d56bedaa091f323a5d9ffe5b69db23da672c0cce
parent 179997 8da49c28d370cbdcb969143cbda6004ead3be368
child 179999 525cb8a7058a9b24153fff2b6e1e41e70977eda1
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerssworkman
bugs998239, 877193
milestone31.0a1
Bug 998239 - [RTSP] Follow up of 877193 to refine RtspTrackBuffer size. r=sworkman
content/media/RtspMediaResource.cpp
--- a/content/media/RtspMediaResource.cpp
+++ b/content/media/RtspMediaResource.cpp
@@ -32,19 +32,19 @@ 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 512
+#define BUFFER_SLOT_NUM 8192
 #define BUFFER_SLOT_DEFAULT_SIZE 256
-#define BUFFER_SLOT_MAX_SIZE 8192
+#define BUFFER_SLOT_MAX_SIZE 512
 #define BUFFER_SLOT_INVALID -1
 #define BUFFER_SLOT_EMPTY 0
 
 struct BufferSlotData {
   int32_t mLength;
   uint64_t mTime;
 };