Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
8607fdc9
Commit
8607fdc9
authored
Apr 24, 2018
by
François Grisez
Browse files
Changes the name of one property in Rfc3984Packer
parent
b113748f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/voip/rfc3984.cpp
src/voip/rfc3984.cpp
+2
-2
src/voip/rfc3984.hpp
src/voip/rfc3984.hpp
+3
-3
No files found.
src/voip/rfc3984.cpp
View file @
8607fdc9
...
...
@@ -68,7 +68,7 @@ void Rfc3984Packer::packInNonInterleavedMode(MSQueue *naluq, MSQueue *rtpq, uint
while
((
m
=
ms_queue_get
(
naluq
))
!=
NULL
)
{
end
=
ms_queue_empty
(
naluq
);
sz
=
(
int
)(
m
->
b_wptr
-
m
->
b_rptr
);
if
(
_
stapAAllow
ed
)
{
if
(
_
aggregationEnabl
ed
)
{
if
(
prevm
!=
NULL
)
{
if
((
prevsz
+
sz
)
<
(
_maxSize
-
2
))
{
prevm
=
concatNalus
(
prevm
,
m
);
...
...
@@ -442,7 +442,7 @@ extern "C" {
}
void
rfc3984_enable_stap_a
(
Rfc3984Context
*
ctx
,
bool_t
yesno
)
{
ctx
->
packer
.
enable
StapA
(
yesno
);
ctx
->
packer
.
enable
Aggregation
(
yesno
);
}
void
rfc3984_pack
(
Rfc3984Context
*
ctx
,
MSQueue
*
naluq
,
MSQueue
*
rtpq
,
uint32_t
ts
)
{
...
...
src/voip/rfc3984.hpp
View file @
8607fdc9
...
...
@@ -47,8 +47,8 @@ public:
PacketizationMode
getMode
()
const
{
return
_mode
;}
// some stupid phones don't decode STAP-A packets ...
void
enable
StapA
(
bool
yesno
)
{
_
stapAAllow
ed
=
yesno
;}
bool
stapA
Enabled
()
const
{
return
_
stapAAllow
ed
;}
void
enable
Aggregation
(
bool
yesno
)
{
_
aggregationEnabl
ed
=
yesno
;}
bool
aggregation
Enabled
()
const
{
return
_
aggregationEnabl
ed
;}
void
setMaxPayloadSize
(
int
size
)
{
_maxSize
=
size
;}
int
getMaxPayloadSize
()
{
return
_maxSize
;}
...
...
@@ -71,7 +71,7 @@ private:
int
_maxSize
=
MS_DEFAULT_MAX_PAYLOAD_SIZE
;
uint16_t
_refCSeq
=
0
;
PacketizationMode
_mode
=
SingleNalUnitMode
;
bool
_
stapAAllow
ed
=
false
;
bool
_
aggregationEnabl
ed
=
false
;
};
class
NaluAggregatorInterface
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment