diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-02-07 00:49:31 +0100 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-02-07 02:16:06 +0000 |
commit | 2c65b33b2169a1a40766d55f8eb6339e7b412794 (patch) | |
tree | 1f681d0deeea15ad7008267a15fc31110f6e103a /ui/rtp_stream.h | |
parent | 6f22eb6f7f2ba3034a1f5b2155d70f7c22eb9c68 (diff) | |
download | wireshark-2c65b33b2169a1a40766d55f8eb6339e7b412794.tar.gz |
Fix RTP crash on RTP analysis attempt
The tap listener was handling rtpstream_tapinfo_t* types while other
users was expecting a GList* instead. Fix this and avoid future
confusion by replacing void* pointers.
Ping-Bug: 10714
Change-Id: I66f62eaaed4a529714264bbf4e7ad1e72b46ce5a
Reviewed-on: https://code.wireshark.org/review/6997
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/rtp_stream.h')
-rw-r--r-- | ui/rtp_stream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/rtp_stream.h b/ui/rtp_stream.h index d8ceaaf1e6..9c9b57c070 100644 --- a/ui/rtp_stream.h +++ b/ui/rtp_stream.h @@ -106,12 +106,13 @@ typedef enum typedef struct _rtpstream_tapinfo rtpstream_tapinfo_t; +typedef void (*rtpstream_tap_draw_cb)(rtpstream_tapinfo_t *tapinfo); typedef void (*tap_mark_packet_cb)(rtpstream_tapinfo_t *tapinfo, frame_data *fd); /* structure that holds the information about all detected streams */ /** struct holding all information of the tap */ struct _rtpstream_tapinfo { - tap_draw_cb tap_draw; /**< tap draw callback */ + rtpstream_tap_draw_cb tap_draw; /**< tap draw callback */ tap_mark_packet_cb tap_mark_packet; /**< packet marking callback */ void *tap_data; /**< data for tap callbacks */ int nstreams; /**< number of streams in the list */ |