mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
播放器(reader)setGetInfoCB时统一使用Session对象 (#4195)
Co-authored-by: custompal <chenrengen@gosuncn.com>
This commit is contained in:
@@ -205,7 +205,7 @@ void WebRtcPlayer::onStartWebRTC() {
|
||||
weak_ptr<Session> weak_session = static_pointer_cast<Session>(getSession());
|
||||
_reader->setGetInfoCB([weak_session]() {
|
||||
Any ret;
|
||||
ret.set(static_pointer_cast<SockInfo>(weak_session.lock()));
|
||||
ret.set(static_pointer_cast<Session>(weak_session.lock()));
|
||||
return ret;
|
||||
});
|
||||
_reader->setReadCB([weak_self](const RtspMediaSource::RingDataType &pkt) {
|
||||
|
||||
Reference in New Issue
Block a user