From 0048142ea1ca1e1f1bae7bd116b5db5274fc7782 Mon Sep 17 00:00:00 2001 From: "j.novak@netsystem.cz" Date: Thu, 22 Apr 2021 19:33:11 +0000 Subject: RTP Player: Added button 'Refresh streams' for live capture --- ui/qt/rtp_analysis_dialog.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'ui/qt/rtp_analysis_dialog.cpp') 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(); } -QVectorRtpAnalysisDialog::getSelectedRtpStreams() +QVectorRtpAnalysisDialog::getSelectedRtpIds() { - QVector stream_infos; + QVector 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 streams; - streams << &tabs_[ui->tabWidget->currentIndex()]->stream; - QString filter = make_filter_based_on_rtpstream_info(streams); + QVector 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() { - QVectorstreams = getSelectedRtpStreams(); - QString filter = make_filter_based_on_rtpstream_info(streams); + QVectorids = getSelectedRtpIds(); + QString filter = make_filter_based_on_rtpstream_id(ids); if (filter.length() > 0) { emit updateFilter(filter); } -- cgit v1.2.3