loggerd: pass `encoder_info` by reference (#28694)

old-commit-hash: 36fe84ccdd
This commit is contained in:
Dean Lee 2023-06-26 05:51:28 +08:00 committed by GitHub
parent 9be7d252b8
commit 0ac70b51fa
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ struct RemoteEncoder {
bool seen_first_packet = false;
};
int handle_encoder_msg(LoggerdState *s, Message *msg, std::string &name, struct RemoteEncoder &re, EncoderInfo encoder_info) {
int handle_encoder_msg(LoggerdState *s, Message *msg, std::string &name, struct RemoteEncoder &re, const EncoderInfo &encoder_info) {
int bytes_count = 0;
// extract the message