修复一个rtmp播放器跨线程操作的bug

This commit is contained in:
xzl
2017-05-11 11:06:34 +08:00
parent 60590c1de7
commit 4b48a24ad9
3 changed files with 13 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ RtmpSession::~RtmpSession() {
}
void RtmpSession::onError(const SockException& err) {
DebugL << err.what();
if (m_pPublisherSrc) {
m_pPublisherSrc.reset();
}