1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Refine code, remove the reset for header

This commit is contained in:
winlin 2021-02-28 10:06:52 +08:00
parent 5af0bf9350
commit 75a4c8d9e5
2 changed files with 13 additions and 57 deletions

View file

@ -137,9 +137,6 @@ class SrsRtpExtensionTwcc// : public ISrsCodec
public:
SrsRtpExtensionTwcc();
virtual ~SrsRtpExtensionTwcc();
public:
// Reset the object to reuse it.
void reset();
public:
inline bool exists() { return has_twcc_; } // SrsRtpExtensionTwcc::exists
uint8_t get_id();
@ -162,9 +159,6 @@ class SrsRtpExtensionOneByte// : public ISrsCodec
public:
SrsRtpExtensionOneByte();
virtual ~SrsRtpExtensionOneByte();
public:
// Reset the object to reuse it.
void reset();
public:
inline bool exists() { return has_ext_; } // SrsRtpExtensionOneByte::exists
int get_id() { return id_; }
@ -193,9 +187,6 @@ private:
public:
SrsRtpExtensions();
virtual ~SrsRtpExtensions();
public:
// Reset the object to reuse it.
void reset();
public:
inline bool exists() { return has_ext_; } // SrsRtpExtensions::exists
void set_types_(SrsRtpExtensionTypes* types);
@ -230,9 +221,6 @@ private:
public:
SrsRtpHeader();
virtual ~SrsRtpHeader();
public:
// Reset the object to reuse it.
void reset();
public:
virtual srs_error_t decode(SrsBuffer* buf);
private: