diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-02-02 09:01:29 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-07-16 00:30:14 +0000 |
commit | d2acb04b4cadd90bf09bdc4959e6bffb25dcfd38 (patch) | |
tree | 44079a225b9df1ca5dbb72d58b55ff2112c15cc4 /ui/qt/rtp_stream_dialog.cpp | |
parent | 2e215db532f408697ba16f2d83524a64cc9e6424 (diff) | |
download | wireshark-d2acb04b4cadd90bf09bdc4959e6bffb25dcfd38.tar.gz |
Add the RTP Stream Analysis dialog.
Combine the GTK+ RTP Stream Analysis and RTP Graph Analysis dialogs into
one. Yell at the user less. Disable the Analyze RTP Stream menu item if
we don't have an RTP stream selected.
There are a *lot* of moving parts in this dialog. I've tested with the
few RTP captures I have but it's by no means complete.
"To do" items are listed at the top of rtp_analysis.cpp.
Change-Id: Id503977f069bebc46cc68bc749f0c9cbf4d37bf6
Reviewed-on: https://code.wireshark.org/review/9650
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/rtp_stream_dialog.cpp')
-rw-r--r-- | ui/qt/rtp_stream_dialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/qt/rtp_stream_dialog.cpp b/ui/qt/rtp_stream_dialog.cpp index 0685bcaf8e..9cbe8c86b7 100644 --- a/ui/qt/rtp_stream_dialog.cpp +++ b/ui/qt/rtp_stream_dialog.cpp @@ -316,7 +316,7 @@ bool RtpStreamDialog::eventFilter(QObject *, QEvent *event) void RtpStreamDialog::tapDraw(rtpstream_tapinfo_t *tapinfo) { - RtpStreamDialog *rtp_stream_dialog = static_cast<RtpStreamDialog *>(tapinfo->tap_data); + RtpStreamDialog *rtp_stream_dialog = dynamic_cast<RtpStreamDialog *>((RtpStreamDialog *)tapinfo->tap_data); if (rtp_stream_dialog) { rtp_stream_dialog->updateStreams(); } @@ -326,9 +326,8 @@ void RtpStreamDialog::tapMarkPacket(rtpstream_tapinfo_t *tapinfo, frame_data *fd { if (!tapinfo) return; - RtpStreamDialog *rtp_stream_dialog = static_cast<RtpStreamDialog *>(tapinfo->tap_data); + RtpStreamDialog *rtp_stream_dialog = dynamic_cast<RtpStreamDialog *>((RtpStreamDialog *)tapinfo->tap_data); if (rtp_stream_dialog) { - rtp_stream_dialog->need_redraw_ = true; cf_mark_frame(rtp_stream_dialog->cap_file_.capFile(), fd); rtp_stream_dialog->need_redraw_ = true; } |