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:
parent
5d4baf4eca
commit
eed98dd85b
2 changed files with 13 additions and 57 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue