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

Refine code

This commit is contained in:
winlin 2021-02-27 18:39:09 +08:00
parent f83a47a0fc
commit 55696ce871
3 changed files with 42 additions and 38 deletions

View file

@ -250,7 +250,10 @@ public:
void set_timestamp(uint32_t v);
uint32_t get_timestamp() const;
void set_ssrc(uint32_t v);
uint32_t get_ssrc() const;
// SrsRtpHeader::get_ssrc
inline uint32_t get_ssrc() const {
return ssrc;
}
void set_padding(uint8_t v);
uint8_t get_padding() const;
void set_extensions(const SrsRtpExtensionTypes* extmap);
@ -400,7 +403,7 @@ public:
}
// Get the status of object cache.
// SrsRtpObjectCacheManager::enabled
bool enabled() {
inline bool enabled() {
return enabled_;
}
// SrsRtpObjectCacheManager::size