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 assign

This commit is contained in:
winlin 2021-02-28 10:04:30 +08:00
parent 7c517988a6
commit 5d4baf4eca
2 changed files with 1 additions and 51 deletions

View file

@ -140,7 +140,6 @@ public:
public:
// Reset the object to reuse it.
void reset();
void assign(const SrsRtpExtensionTwcc& h);
public:
inline bool exists() { return has_twcc_; } // SrsRtpExtensionTwcc::exists
uint8_t get_id();
@ -166,7 +165,6 @@ public:
public:
// Reset the object to reuse it.
void reset();
void assign(const SrsRtpExtensionOneByte& h);
public:
inline bool exists() { return has_ext_; } // SrsRtpExtensionOneByte::exists
int get_id() { return id_; }
@ -198,7 +196,6 @@ public:
public:
// Reset the object to reuse it.
void reset();
void assign(const SrsRtpExtensions& h);
public:
inline bool exists() { return has_ext_; } // SrsRtpExtensions::exists
void set_types_(SrsRtpExtensionTypes* types);
@ -236,7 +233,6 @@ public:
public:
// Reset the object to reuse it.
void reset();
void assign(const SrsRtpHeader& h);
public:
virtual srs_error_t decode(SrsBuffer* buf);
private: