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:
parent
09d1c8e0a4
commit
757b77f638
|
@ -27,12 +27,12 @@ void RTPConnection::setPayloadType(rtp_format_t fmt)
|
||||||
rtp_payload_ = 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_;
|
return config_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,11 +42,11 @@ public:
|
||||||
|
|
||||||
void fillFrame(RTPGeneric::GenericFrame *frame);
|
void fillFrame(RTPGeneric::GenericFrame *frame);
|
||||||
|
|
||||||
void setConfig(uint8_t *config);
|
void setConfig(void *config);
|
||||||
uint8_t *getConfig();
|
void *getConfig();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
uint8_t *config_;
|
void *config_;
|
||||||
uint32_t id_;
|
uint32_t id_;
|
||||||
int socket_;
|
int socket_;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue