aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/rtp_analysis_dialog.cpp
diff options
context:
space:
mode:
authorj.novak@netsystem.cz <j.novak@netsystem.cz>2021-04-22 19:33:11 +0000
committerWireshark GitLab Utility <6629907-ws-gitlab-utility@users.noreply.gitlab.com>2021-04-22 19:33:11 +0000
commit0048142ea1ca1e1f1bae7bd116b5db5274fc7782 (patch)
tree1250e73ad51578c894574816ad67992f898c068a /ui/qt/rtp_analysis_dialog.cpp
parentc182fa4268ad6abe493d556a1b488646a8269a0f (diff)
RTP Player: Added button 'Refresh streams' for live capture
Diffstat (limited to 'ui/qt/rtp_analysis_dialog.cpp')
-rw-r--r--ui/qt/rtp_analysis_dialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/ui/qt/rtp_analysis_dialog.cpp b/ui/qt/rtp_analysis_dialog.cpp
index 9ad1c9d69b..34e01db77d 100644
--- a/ui/qt/rtp_analysis_dialog.cpp
+++ b/ui/qt/rtp_analysis_dialog.cpp
@@ -785,35 +785,35 @@ void RtpAnalysisDialog::updateGraph()
ui->streamGraph->replot();
}
-QVector<rtpstream_info_t *>RtpAnalysisDialog::getSelectedRtpStreams()
+QVector<rtpstream_id_t *>RtpAnalysisDialog::getSelectedRtpIds()
{
- QVector<rtpstream_info_t *> stream_infos;
+ QVector<rtpstream_id_t *> stream_ids;
for(int i=0; i < tabs_.count(); i++) {
- stream_infos << &tabs_[i]->stream;
+ stream_ids << &(tabs_[i]->stream.id);
}
- return stream_infos;
+ return stream_ids;
}
void RtpAnalysisDialog::rtpPlayerReplace()
{
if (tabs_.count() < 1) return;
- emit rtpPlayerDialogReplaceRtpStreams(getSelectedRtpStreams());
+ emit rtpPlayerDialogReplaceRtpStreams(getSelectedRtpIds());
}
void RtpAnalysisDialog::rtpPlayerAdd()
{
if (tabs_.count() < 1) return;
- emit rtpPlayerDialogAddRtpStreams(getSelectedRtpStreams());
+ emit rtpPlayerDialogAddRtpStreams(getSelectedRtpIds());
}
void RtpAnalysisDialog::rtpPlayerRemove()
{
if (tabs_.count() < 1) return;
- emit rtpPlayerDialogRemoveRtpStreams(getSelectedRtpStreams());
+ emit rtpPlayerDialogRemoveRtpStreams(getSelectedRtpIds());
}
void RtpAnalysisDialog::saveCsvData(QFile *save_file, QTreeWidget *tree)
@@ -1086,9 +1086,9 @@ QPushButton *RtpAnalysisDialog::addAnalyzeButton(QDialogButtonBox *button_box, Q
void RtpAnalysisDialog::on_actionPrepareFilterOne_triggered()
{
if ((ui->tabWidget->currentIndex() < (ui->tabWidget->count()-1))) {
- QVector<rtpstream_info_t *> streams;
- streams << &tabs_[ui->tabWidget->currentIndex()]->stream;
- QString filter = make_filter_based_on_rtpstream_info(streams);
+ QVector<rtpstream_id_t *> ids;
+ ids << &(tabs_[ui->tabWidget->currentIndex()]->stream.id);
+ QString filter = make_filter_based_on_rtpstream_id(ids);
if (filter.length() > 0) {
emit updateFilter(filter);
}
@@ -1097,8 +1097,8 @@ void RtpAnalysisDialog::on_actionPrepareFilterOne_triggered()
void RtpAnalysisDialog::on_actionPrepareFilterAll_triggered()
{
- QVector<rtpstream_info_t *>streams = getSelectedRtpStreams();
- QString filter = make_filter_based_on_rtpstream_info(streams);
+ QVector<rtpstream_id_t *>ids = getSelectedRtpIds();
+ QString filter = make_filter_based_on_rtpstream_id(ids);
if (filter.length() > 0) {
emit updateFilter(filter);
}