Have the frame_tvbuff.c routines not use the global cfile.
[metze/wireshark/wip.git] / ui / gtk / iax2_analysis.c
index a4d3b5b8a44b7d0e37cc8caa1cd891ede8c21f57..b52d996586659d6fbcf84bb1f6e54e388cb6a7d6 100644 (file)
@@ -79,6 +79,8 @@
 
 #include "frame_tvbuff.h"
 
+#include "globals.h"
+
 void register_tap_listener_iax2_analysis(void);
 
 enum
@@ -3568,7 +3570,8 @@ void iax2_analysis_cb(GtkAction *action _U_, gpointer user_data _U_)
        epan_dissect_init(&edt, cf->epan, TRUE, FALSE);
        epan_dissect_prime_with_dfilter(&edt, sfcode);
        epan_dissect_run(&edt, cf->cd_t, &cf->phdr,
-           frame_tvbuff_new_buffer(fdata, &cf->buf), fdata, NULL);
+           frame_tvbuff_new_buffer(&cf->provider, fdata, &cf->buf),
+           fdata, NULL);
 
        /* if it is not an iax2 packet, show an error dialog */
        if (!dfilter_apply_edt(sfcode, &edt)) {