aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtp.c
diff options
context:
space:
mode:
authorEd Warnicke <hagbard@physics.rutgers.edu>2001-11-26 04:52:51 +0000
committerEd Warnicke <hagbard@physics.rutgers.edu>2001-11-26 04:52:51 +0000
commitfcd5b352af60e034a4b63601272b43b6644029cd (patch)
treeb423f343624fa9219216fac49dd6a23b2c4d5586 /packet-rtp.c
parent7537283cc691e6370db67fd5b0e393583074bf7f (diff)
Moved from using dissect_data() to using call_dissector()
svn path=/trunk/; revision=4269
Diffstat (limited to 'packet-rtp.c')
-rw-r--r--packet-rtp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-rtp.c b/packet-rtp.c
index ed26e1da8c..d9866f1de1 100644
--- a/packet-rtp.c
+++ b/packet-rtp.c
@@ -6,7 +6,7 @@
* Copyright 2000, Philips Electronics N.V.
* Written by Andreas Sikkema <andreas.sikkema@philips.com>
*
- * $Id: packet-rtp.c,v 1.25 2001/09/08 00:43:51 guy Exp $
+ * $Id: packet-rtp.c,v 1.26 2001/11/26 04:52:51 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -100,6 +100,7 @@ static gint ett_hdr_ext = -1;
static dissector_handle_t h261_handle;
static dissector_handle_t mpeg1_handle;
+static dissector_handle_t data_handle;
/*
* Fields in the first octet of the RTP header.
@@ -494,7 +495,7 @@ dissect_rtp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
*/
proto_tree_add_text(rtp_tree, tvb, 0, 0,
"Frame has padding, but not all the frame data was captured");
- dissect_data(tvb, offset, pinfo, rtp_tree);
+ call_dissector(data_handle,tvb_new_subset(tvb, offset,-1,tvb_reported_length_remaining(tvb,offset)), pinfo, rtp_tree);
return;
}
@@ -781,6 +782,7 @@ proto_reg_handoff_rtp(void)
*/
h261_handle = find_dissector("h261");
mpeg1_handle = find_dissector("mpeg1");
+ data_handle = find_dissector("data");
/*
* Register this dissector as one that can be assigned to a