Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
dac99553
提交
dac99553
authored
12月 28, 2016
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some work on RTP retransmission.
上级
efb47bd0
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
114 行增加
和
60 行删除
+114
-60
Room.h
worker/include/RTC/Room.h
+2
-0
RtpReceiver.h
worker/include/RTC/RtpReceiver.h
+3
-1
RtpSender.h
worker/include/RTC/RtpSender.h
+3
-2
RtpStream.h
worker/include/RTC/RtpStream.h
+1
-0
Room.cpp
worker/src/RTC/Room.cpp
+37
-32
RtpCodecMime.cpp
worker/src/RTC/RtpDictionaries/RtpCodecMime.cpp
+8
-6
RtpReceiver.cpp
worker/src/RTC/RtpReceiver.cpp
+31
-13
RtpSender.cpp
worker/src/RTC/RtpSender.cpp
+13
-0
RtpStream.cpp
worker/src/RTC/RtpStream.cpp
+16
-6
没有找到文件。
worker/include/RTC/Room.h
浏览文件 @
dac99553
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include "Channel/Notifier.h"
#include "Channel/Notifier.h"
#include <unordered_map>
#include <unordered_map>
#include <unordered_set>
#include <unordered_set>
#include <vector>
#include <json/json.h>
#include <json/json.h>
namespace
RTC
namespace
RTC
...
@@ -73,6 +74,7 @@ namespace RTC
...
@@ -73,6 +74,7 @@ namespace RTC
std
::
unordered_map
<
uint32_t
,
RTC
::
Peer
*>
peers
;
std
::
unordered_map
<
uint32_t
,
RTC
::
Peer
*>
peers
;
std
::
unordered_map
<
RTC
::
RtpReceiver
*
,
std
::
unordered_set
<
RTC
::
RtpSender
*>>
mapRtpReceiverRtpSenders
;
std
::
unordered_map
<
RTC
::
RtpReceiver
*
,
std
::
unordered_set
<
RTC
::
RtpSender
*>>
mapRtpReceiverRtpSenders
;
std
::
unordered_map
<
RTC
::
RtpSender
*
,
RTC
::
RtpReceiver
*>
mapRtpSenderRtpReceiver
;
std
::
unordered_map
<
RTC
::
RtpSender
*
,
RTC
::
RtpReceiver
*>
mapRtpSenderRtpReceiver
;
std
::
vector
<
RTC
::
RtpPacket
*>
rtpRetransmissionContainer
;
};
};
/* Inline static methods. */
/* Inline static methods. */
...
...
worker/include/RTC/RtpReceiver.h
浏览文件 @
dac99553
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include "Channel/Request.h"
#include "Channel/Request.h"
#include "Channel/Notifier.h"
#include "Channel/Notifier.h"
#include <string>
#include <string>
#include <vector>
#include <json/json.h>
#include <json/json.h>
namespace
RTC
namespace
RTC
...
@@ -45,7 +46,8 @@ namespace RTC
...
@@ -45,7 +46,8 @@ namespace RTC
void
RemoveTransport
(
RTC
::
Transport
*
transport
);
void
RemoveTransport
(
RTC
::
Transport
*
transport
);
RTC
::
RtpParameters
*
GetParameters
();
RTC
::
RtpParameters
*
GetParameters
();
void
ReceiveRtpPacket
(
RTC
::
RtpPacket
*
packet
);
void
ReceiveRtpPacket
(
RTC
::
RtpPacket
*
packet
);
void
RequestRtpRetransmission
(
uint16_t
seq
,
uint16_t
count
,
std
::
vector
<
RTC
::
RtpPacket
*>&
container
);
// TODO
void
ReceiveRtcpReceiverReport
(
RTC
::
RTCP
::
ReceiverReport
*
report
);
void
ReceiveRtcpReceiverReport
(
RTC
::
RTCP
::
ReceiverReport
*
report
);
RTC
::
RTCP
::
ReceiverReport
*
GetRtcpReceiverReport
();
RTC
::
RTCP
::
ReceiverReport
*
GetRtcpReceiverReport
();
void
ReceiveRtcpFeedback
(
RTC
::
RTCP
::
FeedbackPsPacket
*
packet
);
void
ReceiveRtcpFeedback
(
RTC
::
RTCP
::
FeedbackPsPacket
*
packet
);
...
...
worker/include/RTC/RtpSender.h
浏览文件 @
dac99553
...
@@ -39,12 +39,13 @@ namespace RTC
...
@@ -39,12 +39,13 @@ namespace RTC
void
RemoveTransport
(
RTC
::
Transport
*
transport
);
void
RemoveTransport
(
RTC
::
Transport
*
transport
);
RTC
::
RtpParameters
*
GetParameters
();
RTC
::
RtpParameters
*
GetParameters
();
void
SendRtpPacket
(
RTC
::
RtpPacket
*
packet
);
void
SendRtpPacket
(
RTC
::
RtpPacket
*
packet
);
void
RetransmitRtpPacket
(
RTC
::
RtpPacket
*
packet
);
// TODO
void
ReceiveRtcpSenderReport
(
RTC
::
RTCP
::
SenderReport
*
report
);
void
ReceiveRtcpSenderReport
(
RTC
::
RTCP
::
SenderReport
*
report
);
RTC
::
RTCP
::
SenderReport
*
GetRtcpSenderReport
();
RTC
::
RTCP
::
SenderReport
*
GetRtcpSenderReport
();
void
ReceiveRtcpSdesChunk
(
RTC
::
RTCP
::
SdesChunk
*
chunk
);
void
ReceiveRtcpSdesChunk
(
RTC
::
RTCP
::
SdesChunk
*
chunk
);
RTC
::
RTCP
::
SdesChunk
*
GetRtcpSdesChunk
();
RTC
::
RTCP
::
SdesChunk
*
GetRtcpSdesChunk
();
private
:
private
:
void
SetPayloadTypesMapping
();
void
SetPayloadTypesMapping
();
...
...
worker/include/RTC/RtpStream.h
浏览文件 @
dac99553
...
@@ -28,6 +28,7 @@ namespace RTC
...
@@ -28,6 +28,7 @@ namespace RTC
~
RtpStream
();
~
RtpStream
();
bool
ReceivePacket
(
RTC
::
RtpPacket
*
packet
);
bool
ReceivePacket
(
RTC
::
RtpPacket
*
packet
);
void
RequestRtpRetransmission
(
uint16_t
seq
,
uint16_t
count
,
std
::
vector
<
RTC
::
RtpPacket
*>&
container
);
private
:
private
:
void
InitSeq
(
uint16_t
seq
);
void
InitSeq
(
uint16_t
seq
);
...
...
worker/src/RTC/Room.cpp
浏览文件 @
dac99553
...
@@ -60,7 +60,8 @@ namespace RTC
...
@@ -60,7 +60,8 @@ namespace RTC
Room
::
Room
(
Listener
*
listener
,
Channel
::
Notifier
*
notifier
,
uint32_t
roomId
,
Json
::
Value
&
data
)
:
Room
::
Room
(
Listener
*
listener
,
Channel
::
Notifier
*
notifier
,
uint32_t
roomId
,
Json
::
Value
&
data
)
:
roomId
(
roomId
),
roomId
(
roomId
),
listener
(
listener
),
listener
(
listener
),
notifier
(
notifier
)
notifier
(
notifier
),
rtpRetransmissionContainer
(
200
)
{
{
MS_TRACE
();
MS_TRACE
();
...
@@ -595,42 +596,50 @@ namespace RTC
...
@@ -595,42 +596,50 @@ namespace RTC
}
}
}
}
void
Room
::
onPeerRtcp
Completed
(
RTC
::
Peer
*
peer
)
void
Room
::
onPeerRtcp
ReceiverReport
(
RTC
::
Peer
*
peer
,
RTC
::
RtpSender
*
rtpSender
,
RTC
::
RTCP
::
ReceiverReport
*
report
)
{
{
MS_TRACE
();
MS_TRACE
();
// Tell all the peers but the one in the argument to generate and send their RTCP
MS_ASSERT
(
this
->
mapRtpSenderRtpReceiver
.
find
(
rtpSender
)
!=
this
->
mapRtpSenderRtpReceiver
.
end
(),
"RtpSender not present in the map"
);
for
(
auto
it
=
this
->
peers
.
begin
();
it
!=
this
->
peers
.
end
();
++
it
)
{
auto
&
rtpReceiver
=
this
->
mapRtpSenderRtpReceiver
[
rtpSender
];
if
(
it
->
second
!=
peer
)
{
it
->
second
->
SendRtcp
();
// TODO: If NACK must call rtpReceiver->RequestRtpRetransmission() and
}
// MUST NOT forward the NACK.
}
// TODO: swtich(report->xxxx) etc
rtpReceiver
->
ReceiveRtcpReceiverReport
(
report
);
}
}
void
Room
::
onPeerRtcp
ReceiverReport
(
RTC
::
Peer
*
peer
,
RTC
::
RtpSender
*
rtpSender
,
RTC
::
RTCP
::
Receiv
erReport
*
report
)
void
Room
::
onPeerRtcp
SenderReport
(
RTC
::
Peer
*
peer
,
RTC
::
RtpReceiver
*
rtpReceiver
,
RTC
::
RTCP
::
Send
erReport
*
report
)
{
{
MS_TRACE
();
MS_TRACE
();
MS_ASSERT
(
this
->
mapRtp
SenderRtpReceiver
.
find
(
rtpSender
)
!=
this
->
mapRtpSenderRtpReceiver
.
end
(),
"RtpSend
er not present in the map"
);
MS_ASSERT
(
this
->
mapRtp
ReceiverRtpSenders
.
find
(
rtpReceiver
)
!=
this
->
mapRtpReceiverRtpSenders
.
end
(),
"RtpReceiv
er not present in the map"
);
auto
&
rtp
Receiver
=
this
->
mapRtpSenderRtpReceiver
[
rtpSend
er
];
auto
&
rtp
Senders
=
this
->
mapRtpReceiverRtpSenders
[
rtpReceiv
er
];
rtpReceiver
->
ReceiveRtcpReceiverReport
(
report
);
for
(
auto
&
rtpSender
:
rtpSenders
)
{
rtpSender
->
ReceiveRtcpSenderReport
(
report
);
}
}
}
void
Room
::
onPeerRtcp
Feedback
(
RTC
::
Peer
*
peer
,
RTC
::
RtpSender
*
rtpSender
,
RTC
::
RTCP
::
FeedbackPsPacket
*
packet
)
void
Room
::
onPeerRtcp
SdesChunk
(
RTC
::
Peer
*
peer
,
RTC
::
RtpReceiver
*
rtpReceiver
,
RTC
::
RTCP
::
SdesChunk
*
chunk
)
{
{
MS_TRACE
();
MS_TRACE
();
MS_ASSERT
(
this
->
mapRtp
SenderRtpReceiver
.
find
(
rtpSender
)
!=
this
->
mapRtpSenderRtpReceiver
.
end
(),
"RtpSend
er not present in the map"
);
MS_ASSERT
(
this
->
mapRtp
ReceiverRtpSenders
.
find
(
rtpReceiver
)
!=
this
->
mapRtpReceiverRtpSenders
.
end
(),
"RtpReceiv
er not present in the map"
);
auto
&
rtp
Receiver
=
this
->
mapRtpSenderRtpReceiver
[
rtpSend
er
];
auto
&
rtp
Senders
=
this
->
mapRtpReceiverRtpSenders
[
rtpReceiv
er
];
rtpReceiver
->
ReceiveRtcpFeedback
(
packet
);
for
(
auto
&
rtpSender
:
rtpSenders
)
{
rtpSender
->
ReceiveRtcpSdesChunk
(
chunk
);
}
}
}
void
Room
::
onPeerRtcpFeedback
(
RTC
::
Peer
*
peer
,
RTC
::
RtpSender
*
rtpSender
,
RTC
::
RTCP
::
Feedback
Rtp
Packet
*
packet
)
void
Room
::
onPeerRtcpFeedback
(
RTC
::
Peer
*
peer
,
RTC
::
RtpSender
*
rtpSender
,
RTC
::
RTCP
::
Feedback
Ps
Packet
*
packet
)
{
{
MS_TRACE
();
MS_TRACE
();
...
@@ -641,31 +650,27 @@ namespace RTC
...
@@ -641,31 +650,27 @@ namespace RTC
rtpReceiver
->
ReceiveRtcpFeedback
(
packet
);
rtpReceiver
->
ReceiveRtcpFeedback
(
packet
);
}
}
void
Room
::
onPeerRtcp
SenderReport
(
RTC
::
Peer
*
peer
,
RTC
::
RtpReceiver
*
rtpReceiver
,
RTC
::
RTCP
::
SenderReport
*
repor
t
)
void
Room
::
onPeerRtcp
Feedback
(
RTC
::
Peer
*
peer
,
RTC
::
RtpSender
*
rtpSender
,
RTC
::
RTCP
::
FeedbackRtpPacket
*
packe
t
)
{
{
MS_TRACE
();
MS_TRACE
();
MS_ASSERT
(
this
->
mapRtp
ReceiverRtpSenders
.
find
(
rtpReceiver
)
!=
this
->
mapRtpReceiverRtpSenders
.
end
(),
"RtpReceiv
er not present in the map"
);
MS_ASSERT
(
this
->
mapRtp
SenderRtpReceiver
.
find
(
rtpSender
)
!=
this
->
mapRtpSenderRtpReceiver
.
end
(),
"RtpSend
er not present in the map"
);
auto
&
rtp
Senders
=
this
->
mapRtpReceiverRtpSenders
[
rtpReceiv
er
];
auto
&
rtp
Receiver
=
this
->
mapRtpSenderRtpReceiver
[
rtpSend
er
];
for
(
auto
&
rtpSender
:
rtpSenders
)
rtpReceiver
->
ReceiveRtcpFeedback
(
packet
);
{
rtpSender
->
ReceiveRtcpSenderReport
(
report
);
}
}
}
void
Room
::
onPeerRtcp
SdesChunk
(
RTC
::
Peer
*
peer
,
RTC
::
RtpReceiver
*
rtpReceiver
,
RTC
::
RTCP
::
SdesChunk
*
chunk
)
void
Room
::
onPeerRtcp
Completed
(
RTC
::
Peer
*
peer
)
{
{
MS_TRACE
();
MS_TRACE
();
MS_ASSERT
(
this
->
mapRtpReceiverRtpSenders
.
find
(
rtpReceiver
)
!=
this
->
mapRtpReceiverRtpSenders
.
end
(),
"RtpReceiver not present in the map"
);
// Tell all the peers but the one in the argument to generate and send their RTCP
for
(
auto
it
=
this
->
peers
.
begin
();
it
!=
this
->
peers
.
end
();
++
it
)
auto
&
rtpSenders
=
this
->
mapRtpReceiverRtpSenders
[
rtpReceiver
];
for
(
auto
&
rtpSender
:
rtpSenders
)
{
{
rtpSender
->
ReceiveRtcpSdesChunk
(
chunk
);
if
(
it
->
second
!=
peer
)
{
it
->
second
->
SendRtcp
();
}
}
}
}
}
}
}
worker/src/RTC/RtpDictionaries/RtpCodecMime.cpp
浏览文件 @
dac99553
...
@@ -34,13 +34,14 @@ namespace RTC
...
@@ -34,13 +34,14 @@ namespace RTC
{
"vp9"
,
RtpCodecMime
::
Subtype
::
VP9
},
{
"vp9"
,
RtpCodecMime
::
Subtype
::
VP9
},
{
"h264"
,
RtpCodecMime
::
Subtype
::
H264
},
{
"h264"
,
RtpCodecMime
::
Subtype
::
H264
},
{
"h265"
,
RtpCodecMime
::
Subtype
::
H265
},
{
"h265"
,
RtpCodecMime
::
Subtype
::
H265
},
// Complementary codecs:
{
"cn"
,
RtpCodecMime
::
Subtype
::
CN
},
{
"telephone-event"
,
RtpCodecMime
::
Subtype
::
TELEPHONE_EVENT
},
// Feature codecs:
// Feature codecs:
{
"rtx"
,
RtpCodecMime
::
Subtype
::
RTX
},
{
"rtx"
,
RtpCodecMime
::
Subtype
::
RTX
},
{
"ulpfec"
,
RtpCodecMime
::
Subtype
::
ULPFEC
},
{
"ulpfec"
,
RtpCodecMime
::
Subtype
::
ULPFEC
},
{
"flexfec"
,
RtpCodecMime
::
Subtype
::
FLEXFEC
},
{
"flexfec"
,
RtpCodecMime
::
Subtype
::
FLEXFEC
},
{
"red"
,
RtpCodecMime
::
Subtype
::
RED
},
{
"red"
,
RtpCodecMime
::
Subtype
::
RED
}
{
"cn"
,
RtpCodecMime
::
Subtype
::
CN
},
{
"telephone-event"
,
RtpCodecMime
::
Subtype
::
TELEPHONE_EVENT
}
};
};
std
::
map
<
RtpCodecMime
::
Subtype
,
std
::
string
>
RtpCodecMime
::
subtype2String
=
std
::
map
<
RtpCodecMime
::
Subtype
,
std
::
string
>
RtpCodecMime
::
subtype2String
=
...
@@ -56,13 +57,14 @@ namespace RTC
...
@@ -56,13 +57,14 @@ namespace RTC
{
RtpCodecMime
::
Subtype
::
VP9
,
"VP9"
},
{
RtpCodecMime
::
Subtype
::
VP9
,
"VP9"
},
{
RtpCodecMime
::
Subtype
::
H264
,
"H264"
},
{
RtpCodecMime
::
Subtype
::
H264
,
"H264"
},
{
RtpCodecMime
::
Subtype
::
H265
,
"H265"
},
{
RtpCodecMime
::
Subtype
::
H265
,
"H265"
},
// Complementary codecs:
{
RtpCodecMime
::
Subtype
::
CN
,
"CN"
},
{
RtpCodecMime
::
Subtype
::
TELEPHONE_EVENT
,
"telephone-event"
},
// Feature codecs:
// Feature codecs:
{
RtpCodecMime
::
Subtype
::
RTX
,
"rtx"
},
{
RtpCodecMime
::
Subtype
::
RTX
,
"rtx"
},
{
RtpCodecMime
::
Subtype
::
ULPFEC
,
"ulpfec"
},
{
RtpCodecMime
::
Subtype
::
ULPFEC
,
"ulpfec"
},
{
RtpCodecMime
::
Subtype
::
FLEXFEC
,
"flexfec"
},
{
RtpCodecMime
::
Subtype
::
FLEXFEC
,
"flexfec"
},
{
RtpCodecMime
::
Subtype
::
RED
,
"red"
},
{
RtpCodecMime
::
Subtype
::
RED
,
"red"
}
{
RtpCodecMime
::
Subtype
::
CN
,
"CN"
},
{
RtpCodecMime
::
Subtype
::
TELEPHONE_EVENT
,
"telephone-event"
}
};
};
/* Instance methods. */
/* Instance methods. */
...
...
worker/src/RTC/RtpReceiver.cpp
浏览文件 @
dac99553
...
@@ -18,9 +18,19 @@ namespace RTC
...
@@ -18,9 +18,19 @@ namespace RTC
{
{
MS_TRACE
();
MS_TRACE
();
// Create an RtpStream instance if video.
// Create an RtpStream.
if
(
kind
==
RTC
::
Media
::
Kind
::
VIDEO
)
switch
(
kind
)
this
->
rtpStream
=
new
RTC
::
RtpStream
(
50
);
// TODO: Set a proper size.
{
case
RTC
:
:
Media
::
Kind
::
VIDEO
:
case
RTC
:
:
Media
::
Kind
::
DEPTH
:
this
->
rtpStream
=
new
RTC
::
RtpStream
(
200
);
// Buffer up to 200 packets.
break
;
case
RTC
:
:
Media
::
Kind
::
AUDIO
:
this
->
rtpStream
=
new
RTC
::
RtpStream
(
0
);
// No buffer for audio streams.
break
;
default
:
;
}
}
}
RtpReceiver
::~
RtpReceiver
()
RtpReceiver
::~
RtpReceiver
()
...
@@ -216,16 +226,11 @@ namespace RTC
...
@@ -216,16 +226,11 @@ namespace RTC
// TODO: Check if stopped, etc (not yet done)
// TODO: Check if stopped, etc (not yet done)
// Store in the buffer
// Process the packet.
// TODO: Must check what kind of packet we are storing, right?
// TODO: Must check what kind of packet we are checking. For example, RTX
// TODO: RtpStream.ReceivePacket() should return true if the packet is valid and
// packets (once implemented) should have a different handling.
// false if it must be ignored.
if
(
!
this
->
rtpStream
->
ReceivePacket
(
packet
))
if
(
this
->
kind
==
RTC
::
Media
::
Kind
::
VIDEO
)
return
;
{
// TODO: Enable when properly implemented.
if
(
!
this
->
rtpStream
->
ReceivePacket
(
packet
))
return
;
}
// Notify the listener.
// Notify the listener.
this
->
listener
->
onRtpPacket
(
this
,
packet
);
this
->
listener
->
onRtpPacket
(
this
,
packet
);
...
@@ -260,6 +265,19 @@ namespace RTC
...
@@ -260,6 +265,19 @@ namespace RTC
}
}
}
}
void
RtpReceiver
::
RequestRtpRetransmission
(
uint16_t
seq
,
uint16_t
count
,
std
::
vector
<
RTC
::
RtpPacket
*>&
container
)
{
MS_TRACE
();
// First of all, set the first element of the container to null so, in case
// no packet is inserted into it, the reader will know it.
container
[
0
]
=
nullptr
;
// Proxy the request to the RtpStream.
if
(
this
->
rtpStream
)
this
->
rtpStream
->
RequestRtpRetransmission
(
seq
,
count
,
container
);
}
void
RtpReceiver
::
FillRtpParameters
()
void
RtpReceiver
::
FillRtpParameters
()
{
{
MS_TRACE
();
MS_TRACE
();
...
...
worker/src/RTC/RtpSender.cpp
浏览文件 @
dac99553
...
@@ -239,6 +239,19 @@ namespace RTC
...
@@ -239,6 +239,19 @@ namespace RTC
packet
->
SetPayloadType
(
originalPayloadType
);
packet
->
SetPayloadType
(
originalPayloadType
);
}
}
void
RtpSender
::
RetransmitRtpPacket
(
RTC
::
RtpPacket
*
packet
)
{
MS_TRACE
();
if
(
!
this
->
available
||
!
this
->
transport
)
return
;
// If the peer supports RTX create a RTX packet and insert the given media
// packet as payload. Otherwise just send the packet as usual.
// TODO: No RTX for now so just send as usual.
SendRtpPacket
(
packet
);
}
void
RtpSender
::
SetPayloadTypesMapping
()
void
RtpSender
::
SetPayloadTypesMapping
()
{
{
MS_TRACE
();
MS_TRACE
();
...
...
worker/src/RTC/RtpStream.cpp
浏览文件 @
dac99553
...
@@ -53,15 +53,25 @@ namespace RTC
...
@@ -53,15 +53,25 @@ namespace RTC
return
false
;
return
false
;
}
}
// Store the packet into the buffer.
// If bufferSize was given, store the packet into the buffer.
StorePacket
(
packet
);
if
(
this
->
storage
.
size
()
>
0
)
{
// TODO: TMP
StorePacket
(
packet
);
Dump
();
// TODO: TMP
// Dump();
}
return
true
;
return
true
;
}
}
void
RtpStream
::
RequestRtpRetransmission
(
uint16_t
seq
,
uint16_t
count
,
std
::
vector
<
RTC
::
RtpPacket
*>&
container
)
{
MS_TRACE
();
// TODO: This method must look for the requested RTP packets and insert them
// into the given container, and set to null the next container position.
}
void
RtpStream
::
InitSeq
(
uint16_t
seq
)
void
RtpStream
::
InitSeq
(
uint16_t
seq
)
{
{
MS_TRACE
();
MS_TRACE
();
...
@@ -223,7 +233,7 @@ namespace RTC
...
@@ -223,7 +233,7 @@ namespace RTC
return
;
return
;
}
}
// If the
storage is not full use its next free store
.
// If the
buffer is not full use the next free storage item
.
if
(
this
->
buffer
.
size
()
-
1
<
this
->
storage
.
size
())
if
(
this
->
buffer
.
size
()
-
1
<
this
->
storage
.
size
())
{
{
store
=
this
->
storage
[
this
->
buffer
.
size
()
-
1
].
store
;
store
=
this
->
storage
[
this
->
buffer
.
size
()
-
1
].
store
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论