aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/rtp_stream_dlg.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-05-14 22:53:16 -0400
committerAnders Broman <a.broman58@gmail.com>2015-05-20 11:03:58 +0000
commitfeb47cf93662723386dbce7d1f180efc39f131f1 (patch)
tree535e365114a2df552a963af9a9cead0c9864bff4 /ui/gtk/rtp_stream_dlg.c
parent713ed3f81724f3ea39ade8fdd53f482715f296ca (diff)
Start exposing the filter field of a tap listener to the RTP GUI APIs.
A tap listener has the ability to apply a filter (typically the display filter). Add a parameter to RTP GUI API functions to allow them to pass in a filter. Bug: 996 Change-Id: Ib184dfb023be5d1d24a0d842b4039311426b5293 Reviewed-on: https://code.wireshark.org/review/8468 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/gtk/rtp_stream_dlg.c')
-rw-r--r--ui/gtk/rtp_stream_dlg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/gtk/rtp_stream_dlg.c b/ui/gtk/rtp_stream_dlg.c
index 75b64e4a15..1762f7e6d2 100644
--- a/ui/gtk/rtp_stream_dlg.c
+++ b/ui/gtk/rtp_stream_dlg.c
@@ -1149,11 +1149,13 @@ void rtpstream_dlg_show(GList *list_lcl)
/* entry point when called via the GTK menu */
void rtpstream_launch(GtkAction *action _U_, gpointer user_data _U_)
{
+ const char *filter = gtk_entry_get_text(GTK_ENTRY(main_display_filter_widget));
+
/* Register the tap listener */
- register_tap_listener_rtp_stream(&the_tapinfo_struct);
+ register_tap_listener_rtp_stream(&the_tapinfo_struct, filter);
/* Scan for RTP streams (redissect all packets) */
- rtpstream_scan(&the_tapinfo_struct, &cfile);
+ rtpstream_scan(&the_tapinfo_struct, &cfile, filter);
/* Show the dialog box with the list of streams */
rtpstream_dlg_show(the_tapinfo_struct.strinfo_list);