修复循环引用的问题

This commit is contained in:
xiongziliang
2020-05-21 11:44:57 +08:00
parent 5cc4258ba2
commit 3c1e0531de
4 changed files with 8 additions and 8 deletions

View File

@@ -241,7 +241,7 @@ void HlsPlayerImp::onPacket(const char *data,uint64_t len) {
}
if (!_decoder) {
_decoder = DecoderImp::createDecoder(DecoderImp::decoder_ts, dynamic_pointer_cast<HlsPlayerImp>(shared_from_this()));
_decoder = DecoderImp::createDecoder(DecoderImp::decoder_ts, this);
}
if (_decoder) {