rtp_analysis_dialog.cpp: Correct src/dst info for two independent streams

Display the source and destination for the second reverse stream in case
it differs from the first forward stream.

Change-Id: I117899acca47713a42efcfef28f893d9be26c337
Reviewed-on: https://code.wireshark.org/review/34915
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Jirka Novak 2019-11-02 22:33:03 +01:00 committed by Peter Wu
parent 7dfe906176
commit d1128e58c4
1 changed files with 8 additions and 2 deletions

View File

@ -894,13 +894,13 @@ void RtpAnalysisDialog::updateStatistics()
}
QString stats_tables = "<html><head><style>td{vertical-align:bottom;}</style></head><body>\n";
stats_tables += QString("<p>%1:%2 " UTF8_LEFT_RIGHT_ARROW)
stats_tables += "<h4>Forward</h4>\n";
stats_tables += QString("<p>%1:%2 " UTF8_RIGHTWARDS_ARROW)
.arg(address_to_qstring(&fwd_statinfo_.id.src_addr, true))
.arg(fwd_statinfo_.id.src_port);
stats_tables += QString("<br>%1:%2</p>\n")
.arg(address_to_qstring(&fwd_statinfo_.id.dst_addr, true))
.arg(fwd_statinfo_.id.dst_port);
stats_tables += "<h4>Forward</h4>\n";
stats_tables += "<p><table>\n";
stats_tables += QString("<tr><th align=\"left\">SSRC</th><td>%1</td></tr>")
.arg(int_to_qstring(fwd_statinfo_.id.ssrc, 8, 16));
@ -933,6 +933,12 @@ void RtpAnalysisDialog::updateStatistics()
stats_tables += "</table></p>\n";
stats_tables += "<h4>Reverse</h4>\n";
stats_tables += QString("<p>%1:%2 " UTF8_RIGHTWARDS_ARROW)
.arg(address_to_qstring(&rev_statinfo_.id.src_addr, true))
.arg(rev_statinfo_.id.src_port);
stats_tables += QString("<br>%1:%2</p>\n")
.arg(address_to_qstring(&rev_statinfo_.id.dst_addr, true))
.arg(rev_statinfo_.id.dst_port);
stats_tables += "<p><table>\n";
stats_tables += QString("<tr><th align=\"left\">SSRC</th><td>%1</td></tr>")
.arg(int_to_qstring(rev_statinfo_.id.ssrc, 8, 16));