aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/rtp_analysis_dialog.cpp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-04-14 22:14:15 -0700
committerGuy Harris <guy@alum.mit.edu>2019-04-15 05:54:41 +0000
commit89f339afa21606427b87d98d20f5e49cb4189352 (patch)
tree84b5f5489c27643646e41065082d6faff4b4dc70 /ui/qt/rtp_analysis_dialog.cpp
parent75a6897b0f574df6c8d983e45f2eecb014a4bdc1 (diff)
Hava a routine to read the currently-selected frome.
Have cf_read_current_record() take a capture_file as an argument and read, into its wtap_rec and Buffer for the currently-selected frame, information for the currently-selected frame. Rename cf_read_record_r() to cf_read_record(). That gives us 1) a routine that reads the currently-selected frame into the wtap_rec and Buffer for the currently-selected frame and 2) a routine that reads an arbitrary frame into the wtap_rec and Buffer supplied to it. If you *want* the currently-selected record, use the former, otherwise use the latter. Change-Id: If6bd5915dd5bc18334d7b89859822a19234153a4 Reviewed-on: https://code.wireshark.org/review/32858 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/rtp_analysis_dialog.cpp')
-rw-r--r--ui/qt/rtp_analysis_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/rtp_analysis_dialog.cpp b/ui/qt/rtp_analysis_dialog.cpp
index bc54d70820..cf4f4e288d 100644
--- a/ui/qt/rtp_analysis_dialog.cpp
+++ b/ui/qt/rtp_analysis_dialog.cpp
@@ -1556,9 +1556,9 @@ void RtpAnalysisDialog::findStreams()
if (!cap_file_.capFile() || !cap_file_.capFile()->current_frame) close();
- frame_data *fdata = cap_file_.capFile()->current_frame;
+ if (!cf_read_current_record(cap_file_.capFile())) close();
- if (!cf_read_record(cap_file_.capFile(), fdata)) close();
+ frame_data *fdata = cap_file_.capFile()->current_frame;
epan_dissect_t edt;