aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/mgcp_stat.c
diff options
context:
space:
mode:
authorLars Roland <Lars.Roland@gmx.net>2005-02-20 15:53:11 +0000
committerLars Roland <Lars.Roland@gmx.net>2005-02-20 15:53:11 +0000
commitb65e9739d29e6ccaba833986088f10d32405475d (patch)
tree586b38b0e155434aef2d602a4cb8072d5e858cb6 /gtk/mgcp_stat.c
parenta177b7a4cc593a7655c8a9bc23ced7ac68cf2b6d (diff)
Don't register mgcp taps,
when we haven't loaded the mgcp plugin. and From Alejandro Vaquero: mgcp support for the voip call analysis tap svn path=/trunk/; revision=13447
Diffstat (limited to 'gtk/mgcp_stat.c')
-rw-r--r--gtk/mgcp_stat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/mgcp_stat.c b/gtk/mgcp_stat.c
index 5e1b9215ae..1f4d8b67a4 100644
--- a/gtk/mgcp_stat.c
+++ b/gtk/mgcp_stat.c
@@ -324,9 +324,11 @@ static tap_dfilter_dlg mgcp_srt_dlg = {
void
register_tap_listener_gtkmgcpstat(void)
{
- register_ethereal_tap("mgcp,srt", gtk_mgcpstat_init);
+ /* We don't register this tap, if we don't have the mgcp plugin loaded.*/
+ if (find_tap_id("mgcp")) {
+ register_ethereal_tap("mgcp,srt", gtk_mgcpstat_init);
- if (find_tap_id("mgcp"))
register_tap_menu_item("MGCP...", REGISTER_TAP_GROUP_RESPONSE_TIME,
gtk_tap_dfilter_dlg_cb, NULL, NULL, &(mgcp_srt_dlg));
+ }
}