aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/rtp_stream_dlg.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-02-27 12:45:07 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-02-27 12:45:07 +0000
commit6180287d820d261e6eccb7e51e9fa9a0655d85f2 (patch)
tree68ecb8de32dda4145c7aa554b9f5676b0dfdf46f /gtk/rtp_stream_dlg.c
parent5639b87daf2ce738be2f45ac88e834b12f7e677d (diff)
From Martin Mathielson
- from the "RTP streams" dialog, pressing 'Analyze' with no stream selected would throw up an 'invalid filter' error. This patch avoids anything if no steam(s) are selected. svn path=/trunk/; revision=13529
Diffstat (limited to 'gtk/rtp_stream_dlg.c')
-rw-r--r--gtk/rtp_stream_dlg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/rtp_stream_dlg.c b/gtk/rtp_stream_dlg.c
index ae806d31d4..592c67b4bd 100644
--- a/gtk/rtp_stream_dlg.c
+++ b/gtk/rtp_stream_dlg.c
@@ -421,6 +421,11 @@ rtpstream_on_analyse (GtkButton *button _U_,
address ip_dst_rev;
guint16 port_dst_rev = 0;
guint32 ssrc_rev = 0;
+
+ if (!(selected_stream_fwd || selected_stream_rev))
+ {
+ return;
+ }
SET_ADDRESS(&ip_src_fwd,AT_NONE,0,NULL);
SET_ADDRESS(&ip_dst_fwd,AT_NONE,0,NULL);