aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/rtp_analysis_dialog.cpp
diff options
context:
space:
mode:
authorJirka Novak <j.novak@netsystem.cz>2020-01-02 00:38:35 +0100
committerAnders Broman <a.broman58@gmail.com>2020-01-07 09:38:14 +0000
commit71fb8bebfe6b8f76ccfa48ec3cc598e0ddef14ba (patch)
tree8a227fbd4484e183cc2682e0075b787a662b61cc /ui/qt/rtp_analysis_dialog.cpp
parentc1f5b4d2d91d7a1113d0206237fff55669b87727 (diff)
rtp_player: Player is able to set start of audio play by double click
Patch adds ability to set start of audio play by double clicking on waveform. Patch fixes unreported issue with placing waveform at incorrect place when switched relative/absolute time mode (check/uncheck Time of Day). Change-Id: Ib8ce24aea870e2443e033afbb6d6e9fbcf222431 Reviewed-on: https://code.wireshark.org/review/35621 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/rtp_analysis_dialog.cpp')
-rw-r--r--ui/qt/rtp_analysis_dialog.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/qt/rtp_analysis_dialog.cpp b/ui/qt/rtp_analysis_dialog.cpp
index 19ed25e4dc..f14e7e809e 100644
--- a/ui/qt/rtp_analysis_dialog.cpp
+++ b/ui/qt/rtp_analysis_dialog.cpp
@@ -1022,6 +1022,8 @@ void RtpAnalysisDialog::showPlayer()
stream_info.packet_count = fwd_statinfo_.packet_count;
stream_info.setup_frame_number = fwd_statinfo_.setup_frame_number;
nstime_copy(&stream_info.start_rel_time, &fwd_statinfo_.start_rel_time);
+ nstime_copy(&stream_info.stop_rel_time, &fwd_statinfo_.stop_rel_time);
+ nstime_copy(&stream_info.start_abs_time, &fwd_statinfo_.start_abs_time);
rtp_player_dialog->addRtpStream(&stream_info);
if (num_streams_ > 1) {
@@ -1030,6 +1032,8 @@ void RtpAnalysisDialog::showPlayer()
stream_info.packet_count = rev_statinfo_.packet_count;
stream_info.setup_frame_number = rev_statinfo_.setup_frame_number;
nstime_copy(&stream_info.start_rel_time, &rev_statinfo_.start_rel_time);
+ nstime_copy(&stream_info.stop_rel_time, &rev_statinfo_.stop_rel_time);
+ nstime_copy(&stream_info.start_abs_time, &rev_statinfo_.start_abs_time);
rtp_player_dialog->addRtpStream(&stream_info);
}
@@ -1037,6 +1041,7 @@ void RtpAnalysisDialog::showPlayer()
rtp_player_dialog->setWindowModality(Qt::ApplicationModal);
rtp_player_dialog->setAttribute(Qt::WA_DeleteOnClose);
+ rtp_player_dialog->setMarkers();
rtp_player_dialog->show();
#endif // QT_MULTIMEDIA_LIB
}
@@ -1695,6 +1700,8 @@ void RtpAnalysisDialog::findStreams()
fwd_statinfo_.packet_count = strinfo->packet_count;
fwd_statinfo_.setup_frame_number = strinfo->setup_frame_number;
nstime_copy(&fwd_statinfo_.start_rel_time, &strinfo->start_rel_time);
+ nstime_copy(&fwd_statinfo_.stop_rel_time, &strinfo->stop_rel_time);
+ nstime_copy(&fwd_statinfo_.start_abs_time, &strinfo->start_abs_time);
num_streams_++;
}
@@ -1703,6 +1710,8 @@ void RtpAnalysisDialog::findStreams()
rev_statinfo_.packet_count = strinfo->packet_count;
rev_statinfo_.setup_frame_number = strinfo->setup_frame_number;
nstime_copy(&rev_statinfo_.start_rel_time, &strinfo->start_rel_time);
+ nstime_copy(&rev_statinfo_.stop_rel_time, &strinfo->stop_rel_time);
+ nstime_copy(&rev_statinfo_.start_abs_time, &strinfo->start_abs_time);
num_streams_++;
if (rev_statinfo_.id.ssrc == 0) {
rev_statinfo_.id.ssrc = strinfo->id.ssrc;