|
@@ -21,14 +21,14 @@ ChainedIncomingControlProduct PliHandler::processIncomingControlMessage(message_
|
|
|
|
|
|
if (payload_type == 196) {
|
|
if (payload_type == 196) {
|
|
// FIR message, call pli handler anyway
|
|
// FIR message, call pli handler anyway
|
|
- onPli();
|
|
|
|
|
|
+ mOnPli();
|
|
break;
|
|
break;
|
|
} else if (payload_type == 206) {
|
|
} else if (payload_type == 206) {
|
|
// On a payload specific fb message, there is a "feedback message type" (FMT) in the
|
|
// On a payload specific fb message, there is a "feedback message type" (FMT) in the
|
|
// header instead of a report count. PT = 206, FMT = 1 means a PLI message
|
|
// header instead of a report count. PT = 206, FMT = 1 means a PLI message
|
|
uint8_t feedback_message_type = header->reportCount();
|
|
uint8_t feedback_message_type = header->reportCount();
|
|
if (feedback_message_type == 1) {
|
|
if (feedback_message_type == 1) {
|
|
- onPli();
|
|
|
|
|
|
+ mOnPli();
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -37,7 +37,7 @@ ChainedIncomingControlProduct PliHandler::processIncomingControlMessage(message_
|
|
return { message, std::nullopt };
|
|
return { message, std::nullopt };
|
|
}
|
|
}
|
|
|
|
|
|
-PliHandler::PliHandler(std::function<void(void)> onPli) : onPli(onPli) { }
|
|
|
|
|
|
+PliHandler::PliHandler(rtc::synchronized_callback<> onPli) : mOnPli(onPli) { }
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|