diff options
author | Michael Mann <mmann78@netscape.net> | 2014-07-01 18:31:05 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-07-04 16:59:14 +0000 |
commit | c7a6e6fa130611941a5d05e7646d7c38d78b2d0a (patch) | |
tree | 435964d38acd7196e6d6aa58be80e44634ebfa9c /epan/dissectors/packet-mpeg-pmt.c | |
parent | 93517043e96c26a1d3dad49c2f57b345e3bbbba0 (diff) |
convert to proto_tree_add_subtree[_format]
Change-Id: I621f2e2cad9403449cb78f45302388f0c874d3bc
Reviewed-on: https://code.wireshark.org/review/2852
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-mpeg-pmt.c')
-rw-r--r-- | epan/dissectors/packet-mpeg-pmt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mpeg-pmt.c b/epan/dissectors/packet-mpeg-pmt.c index f41102cef3..128714c7f3 100644 --- a/epan/dissectors/packet-mpeg-pmt.c +++ b/epan/dissectors/packet-mpeg-pmt.c @@ -126,7 +126,6 @@ dissect_mpeg_pmt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data proto_item *ti; proto_tree *mpeg_pmt_tree; - proto_item *si; proto_tree *mpeg_pmt_stream_tree; /* The TVB should start right after the section_length in the Section packet */ @@ -169,8 +168,8 @@ dissect_mpeg_pmt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data pid = tvb_get_ntohs(tvb, offset + 1) & MPEG_PMT_STREAM_ELEMENTARY_PID_MASK; es_info_len = tvb_get_ntohs(tvb, offset + 3) & MPEG_PMT_STREAM_ES_INFO_LENGTH_MASK; - si = proto_tree_add_text(mpeg_pmt_tree, tvb, offset, 5 + es_info_len, "Stream PID=0x%04hx", pid); - mpeg_pmt_stream_tree = proto_item_add_subtree(si, ett_mpeg_pmt_stream); + mpeg_pmt_stream_tree = proto_tree_add_subtree_format(mpeg_pmt_tree, tvb, offset, 5 + es_info_len, + ett_mpeg_pmt_stream, NULL, "Stream PID=0x%04hx", pid); proto_tree_add_item(mpeg_pmt_stream_tree, hf_mpeg_pmt_stream_type, tvb, offset, 1, ENC_BIG_ENDIAN); offset += 1; |