From feb47cf93662723386dbce7d1f180efc39f131f1 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 14 May 2015 22:53:16 -0400 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/gtk/rtp_stream_dlg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/gtk/rtp_stream_dlg.c') 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); -- cgit v1.2.1