修复循环引用的问题

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

@@ -152,11 +152,11 @@ void RtpProcess::onRtpDecode(const uint8_t *packet, int bytes, uint32_t timestam
if (checkTS(packet, bytes)) {
//猜测是ts负载
InfoP(this) << "judged to be TS";
_decoder = DecoderImp::createDecoder(DecoderImp::decoder_ts, shared_from_this());
_decoder = DecoderImp::createDecoder(DecoderImp::decoder_ts, this);
} else {
//猜测是ps负载
InfoP(this) << "judged to be PS";
_decoder = DecoderImp::createDecoder(DecoderImp::decoder_ps, shared_from_this());
_decoder = DecoderImp::createDecoder(DecoderImp::decoder_ps, this);
}
}