mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine static cast for RTC connection
This commit is contained in:
parent
a5b21c159f
commit
e17d20c8fa
2 changed files with 10 additions and 13 deletions
|
@ -415,8 +415,11 @@ public:
|
|||
};
|
||||
|
||||
// A RTC Peer Connection, SDP level object.
|
||||
class SrsRtcConnection : virtual public ISrsHourGlass, virtual public ISrsResource
|
||||
, virtual public ISrsDisposingHandler
|
||||
//
|
||||
// For performance, we use non-virtual public from resource,
|
||||
// see https://stackoverflow.com/questions/3747066/c-cannot-convert-from-base-a-to-derived-type-b-via-virtual-base-a
|
||||
class SrsRtcConnection : public ISrsResource
|
||||
, virtual public ISrsHourGlass, virtual public ISrsDisposingHandler
|
||||
{
|
||||
friend class SrsSecurityTransport;
|
||||
friend class SrsRtcPlayStream;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue