Change the config type to void *

This way we can outsource the typecasting to caller (who should know
what the type really is)
This commit is contained in:
Aaro Altonen 2019-05-17 09:21:20 +03:00
parent 09d1c8e0a4
commit 757b77f638
2 changed files with 6 additions and 6 deletions

View File

@ -27,12 +27,12 @@ void RTPConnection::setPayloadType(rtp_format_t fmt)
rtp_payload_ = fmt;
}
void RTPConnection::setConfig(uint8_t *config)
void RTPConnection::setConfig(void *config)
{
config_ = config;
config_ = static_cast<void *>(config);
}
uint8_t *RTPConnection::getConfig()
void *RTPConnection::getConfig()
{
return config_;
}

View File

@ -42,11 +42,11 @@ public:
void fillFrame(RTPGeneric::GenericFrame *frame);
void setConfig(uint8_t *config);
uint8_t *getConfig();
void setConfig(void *config);
void *getConfig();
protected:
uint8_t *config_;
void *config_;
uint32_t id_;
int socket_;