Skip to content

Commit

Permalink
GUI: Fix recv report sometimes not working
Browse files Browse the repository at this point in the history
The widget would fail to parse SSRCs falling outside the signed int
range
  • Loading branch information
mpiatka committed Sep 25, 2024
1 parent 74da163 commit 2052b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gui/QT/widget/recv_loss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void RecvLossWidget::parseLine(std::string_view line){
auto received_sv = tokenize(packet_counts, '/');
auto total_sv = tokenize(packet_counts, '/');

int ssrc;
unsigned ssrc;
int received;
int total;

Expand All @@ -53,7 +53,7 @@ void RecvLossWidget::parseLine(std::string_view line){
updateVal();
}

void RecvLossWidget::addReport(int ssrc, int received, int total){
void RecvLossWidget::addReport(unsigned ssrc, int received, int total){
SSRC_report rep;
rep.received = received;
rep.total = total;
Expand Down
2 changes: 1 addition & 1 deletion gui/QT/widget/recv_loss.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private slots:
};
SSRC_container<SSRC_report, decltype(elapsedTimer.elapsed())> reports;

void addReport(int ssrc, int received, int total);
void addReport(unsigned ssrc, int received, int total);
void updateVal();
};

Expand Down

0 comments on commit 2052b5a

Please sign in to comment.