mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-18 06:02:21 +08:00
使用static_pointer_cast优化性能
This commit is contained in:
@@ -122,7 +122,7 @@ void RtpSession::onRtpPacket(const char *data, size_t len) {
|
||||
return;
|
||||
}
|
||||
_process->setOnlyAudio(_only_audio);
|
||||
_process->setDelegate(dynamic_pointer_cast<RtpSession>(shared_from_this()));
|
||||
_process->setDelegate(static_pointer_cast<RtpSession>(shared_from_this()));
|
||||
}
|
||||
try {
|
||||
uint32_t rtp_ssrc = 0;
|
||||
|
||||
Reference in New Issue
Block a user