去除多余日志

This commit is contained in:
xiongziliang 2020-01-08 14:03:56 +08:00
parent ab32ca39a9
commit 653132b38c

View File

@ -473,10 +473,11 @@ void RtmpSession::onRtmpChunk(RtmpPacket &chunkData) {
case MSG_DATA3: { case MSG_DATA3: {
AMFDecoder dec(chunkData.strBuf, chunkData.typeId == MSG_CMD3 ? 1 : 0); AMFDecoder dec(chunkData.strBuf, chunkData.typeId == MSG_CMD3 ? 1 : 0);
std::string type = dec.load<std::string>(); std::string type = dec.load<std::string>();
TraceP(this) << "notify:" << type;
if (type == "@setDataFrame") { if (type == "@setDataFrame") {
setMetaData(dec); setMetaData(dec);
} }else{
TraceP(this) << "unknown notify:" << type;
}
} }
break; break;
case MSG_AUDIO: case MSG_AUDIO: