aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/mpeg-pes
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-11-04 21:42:02 +0000
committerBill Meier <wmeier@newsguy.com>2008-11-04 21:42:02 +0000
commitf35324d0fd73a8fbbfc922e91823ef6b3a1ae4ec (patch)
treea93ec5381270aa4229984585ea3ec7320ccdcf33 /asn1/mpeg-pes
parenta3d5cbf5d82252d097dc4e637fc218a491d30bc5 (diff)
Minor cleanup mostly related to proto_reg_handoff
Remove code for unused handles; Localize handles (in proto_reg_handoff) which need not be global; Localize (in proto_reg_handoff) "saved prefs"; Use find_dissector instead of create_dissector_handle as appropriate; Use gboolean for "initialized" flag in proto_reg_handoff. svn path=/trunk/; revision=26693
Diffstat (limited to 'asn1/mpeg-pes')
-rw-r--r--asn1/mpeg-pes/packet-mpeg-pes-template.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/asn1/mpeg-pes/packet-mpeg-pes-template.c b/asn1/mpeg-pes/packet-mpeg-pes-template.c
index 513b37e168..42374168a4 100644
--- a/asn1/mpeg-pes/packet-mpeg-pes-template.c
+++ b/asn1/mpeg-pes/packet-mpeg-pes-template.c
@@ -568,9 +568,8 @@ proto_register_mpeg_pes(void)
void
proto_reg_handoff_mpeg_pes(void)
{
- dissector_handle_t mpeg_handle = create_dissector_handle(
- dissect_mpeg, proto_mpeg);
- dissector_add("wtap_encap", WTAP_ENCAP_MPEG, mpeg_handle);
+ dissector_handle_t mpeg_handle = find_dissector("mpeg");
+ dissector_add("wtap_encap", WTAP_ENCAP_MPEG, mpeg_handle);
heur_dissector_add("mpeg", dissect_mpeg_pes, proto_mpeg_pes);
}