Update cpacketstream.cpp

pull/149/head
Napont Kitiwiriyakul 6 years ago committed by GitHub
parent b6c19b6680
commit 373f0e3c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,13 @@ bool CPacketStream::Open(const CDvHeaderPacket &DvHeader, CClient *client)
m_DvHeader = DvHeader;
m_OwnerClient = client;
m_LastPacketTime.Now();
m_CodecStream = g_Transcoder.GetStream(this, client->GetCodec());
if (DvHeader.GetRpt2Module() == 'A' || DvHeader.GetRpt2Module() == 'B' || DvHeader.GetRpt2Module() == 'C' ||
DvHeader.GetRpt2Module() == 'D' || DvHeader.GetRpt2Module() == 'E' ||
DvHeader.GetRpt2Module() == 'N' || DvHeader.GetRpt2Module() == 'T' || DvHeader.GetRpt2Module() == 'Y') {
m_CodecStream = g_Transcoder.GetStream(this, client->GetCodec());
} else {
m_CodecStream = g_Transcoder.GetStream(this, CODEC_NONE);
}
ok = true;
}
return ok;

Loading…
Cancel
Save

Powered by TurnKey Linux.