Commit 8607fdc9 authored by François Grisez's avatar François Grisez
Browse files

Changes the name of one property in Rfc3984Packer

parent b113748f
......@@ -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 (_stapAAllowed) {
if (_aggregationEnabled) {
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.enableStapA(yesno);
ctx->packer.enableAggregation(yesno);
}
void rfc3984_pack(Rfc3984Context *ctx, MSQueue *naluq, MSQueue *rtpq, uint32_t ts) {
......
......@@ -47,8 +47,8 @@ public:
PacketizationMode getMode() const {return _mode;}
// some stupid phones don't decode STAP-A packets ...
void enableStapA(bool yesno) {_stapAAllowed = yesno;}
bool stapAEnabled() const {return _stapAAllowed;}
void enableAggregation(bool yesno) {_aggregationEnabled = yesno;}
bool aggregationEnabled() const {return _aggregationEnabled;}
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 _stapAAllowed = false;
bool _aggregationEnabled = false;
};
class NaluAggregatorInterface {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment