get CID from root PDU header

This commit is contained in:
Kevin Matz 2021-02-03 13:47:36 -05:00
parent fc6cac583d
commit 9d1421b86b
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ namespace SACN {
Construct a Universe Source from an sACN frame PDU
*/
UniverseSource::UniverseSource(std::shared_ptr<DATA::Pdu> pdu) {
auto root_header = (RLP::rlp_header*)pdu->header();
auto root_header = (RLP::rlp_header*)pdu->parent()->header();
cid_ = root_header->cid;
auto frame_header = (DATA::frame_header*)pdu->header();