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

Removes uneeded functions and this->

parent d437a2a8
...@@ -186,23 +186,6 @@ mblk_t *Rfc3984Packer::prependFuIndicatorAndHeader(mblk_t *m, uint8_t indicator, ...@@ -186,23 +186,6 @@ mblk_t *Rfc3984Packer::prependFuIndicatorAndHeader(mblk_t *m, uint8_t indicator,
return h; return h;
} }
bool_t Rfc3984Packer::updateParameterSet(mblk_t **last_parameter_set, mblk_t *new_parameter_set) {
if (*last_parameter_set != NULL) {
size_t last_size = (*last_parameter_set)->b_wptr - (*last_parameter_set)->b_rptr;
size_t new_size = new_parameter_set->b_wptr - new_parameter_set->b_rptr;
if (last_size != new_size || memcmp((*last_parameter_set)->b_rptr, new_parameter_set->b_rptr, new_size) != 0) {
freemsg(*last_parameter_set);
*last_parameter_set = dupmsg(new_parameter_set);
return TRUE;
} else {
return FALSE;
}
} else {
*last_parameter_set = dupmsg(new_parameter_set);
return TRUE;
}
}
// ================ // ================
// AbstractUnpacker // AbstractUnpacker
// ================ // ================
......
...@@ -43,15 +43,15 @@ public: ...@@ -43,15 +43,15 @@ public:
Rfc3984Packer() = default; Rfc3984Packer() = default;
Rfc3984Packer(MSFactory *factory); Rfc3984Packer(MSFactory *factory);
void setMode(PacketizationMode mode) {this->_mode = mode;} void setMode(PacketizationMode mode) {_mode = mode;}
PacketizationMode getMode() const {return this->_mode;} PacketizationMode getMode() const {return _mode;}
// some stupid phones don't decode STAP-A packets ... // some stupid phones don't decode STAP-A packets ...
void enableStapA(bool yesno) {this->_stapAAllowed = yesno;} void enableStapA(bool yesno) {_stapAAllowed = yesno;}
bool stapAEnabled() const {return this->_stapAAllowed;} bool stapAEnabled() const {return _stapAAllowed;}
void setMaxPayloadSize(int size) {this->_maxSize = size;} void setMaxPayloadSize(int size) {_maxSize = size;}
int getMaxPayloadSize() {return this->_maxSize;} int getMaxPayloadSize() {return _maxSize;}
// process NALUs and pack them into rtp payloads // process NALUs and pack them into rtp payloads
void pack(MSQueue *naluq, MSQueue *rtpq, uint32_t ts); void pack(MSQueue *naluq, MSQueue *rtpq, uint32_t ts);
...@@ -67,7 +67,6 @@ private: ...@@ -67,7 +67,6 @@ private:
static void nalHeaderInit(uint8_t *h, uint8_t nri, uint8_t type) {*h=((nri&0x3)<<5) | (type & ((1<<5)-1));} static void nalHeaderInit(uint8_t *h, uint8_t nri, uint8_t type) {*h=((nri&0x3)<<5) | (type & ((1<<5)-1));}
static void putNalSize(mblk_t *m, size_t sz); static void putNalSize(mblk_t *m, size_t sz);
static mblk_t *prependFuIndicatorAndHeader(mblk_t *m, uint8_t indicator, bool_t start, bool_t end, uint8_t type); static mblk_t *prependFuIndicatorAndHeader(mblk_t *m, uint8_t indicator, bool_t start, bool_t end, uint8_t type);
static bool_t updateParameterSet(mblk_t **last_parameter_set, mblk_t *new_parameter_set);
int _maxSize = MS_DEFAULT_MAX_PAYLOAD_SIZE; int _maxSize = MS_DEFAULT_MAX_PAYLOAD_SIZE;
uint16_t _refCSeq = 0; uint16_t _refCSeq = 0;
......
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