aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-hdmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-hdmi.c')
-rw-r--r--epan/dissectors/packet-hdmi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-hdmi.c b/epan/dissectors/packet-hdmi.c
index 5574dce99a..e9f2698838 100644
--- a/epan/dissectors/packet-hdmi.c
+++ b/epan/dissectors/packet-hdmi.c
@@ -24,6 +24,7 @@ void proto_reg_handoff_hdmi(void);
static int proto_hdmi = -1;
+static dissector_handle_t hdmi_handle;
static dissector_handle_t hdcp_handle;
static gint ett_hdmi = -1;
@@ -243,6 +244,7 @@ proto_register_hdmi(void)
proto_hdmi = proto_register_protocol(
"High-Definition Multimedia Interface", "HDMI", "hdmi");
+ hdmi_handle = register_dissector("hdmi", dissect_hdmi, proto_hdmi );
proto_register_field_array(proto_hdmi, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
@@ -252,11 +254,7 @@ proto_register_hdmi(void)
void
proto_reg_handoff_hdmi(void)
{
- dissector_handle_t hdmi_handle;
-
hdcp_handle = find_dissector_add_dependency("hdcp", proto_hdmi);
-
- hdmi_handle = create_dissector_handle( dissect_hdmi, proto_hdmi );
dissector_add_for_decode_as("i2c.message", hdmi_handle );
}