diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-11-08 09:10:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-11-08 09:10:36 +0000 |
commit | 011ee9939460924c6cc9f875fad64c3c2c2cf167 (patch) | |
tree | 380fc570711051acffbaf7729dd0c121536125b3 | |
parent | 88d0e909a23a56f5fe5d6869bc65f4867bf6dc91 (diff) | |
download | wireshark-011ee9939460924c6cc9f875fad64c3c2c2cf167.tar.gz wireshark-011ee9939460924c6cc9f875fad64c3c2c2cf167.tar.bz2 wireshark-011ee9939460924c6cc9f875fad64c3c2c2cf167.zip |
What matters is the encapsulation type, not the file type, so just test
for WTAP_ENCAP_BER, not for WTAP_FILE_BER.
svn path=/trunk/; revision=53164
-rw-r--r-- | ui/gtk/decode_as_dlg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/decode_as_dlg.c b/ui/gtk/decode_as_dlg.c index 67241c1185..e85540a17c 100644 --- a/ui/gtk/decode_as_dlg.c +++ b/ui/gtk/decode_as_dlg.c @@ -1932,8 +1932,8 @@ decode_as_ok(void) return (cfile.edt->pi.ethertype != G_MAXINT) || cfile.edt->pi.ipproto || cfile.edt->pi.ptype == PT_TCP || cfile.edt->pi.ptype == PT_UDP || cfile.edt->pi.mpls_label || - cfile.cd_t == WTAP_FILE_BER || cfile.edt->pi.ptype == PT_BLUETOOTH || + wtap_file_encap(cfile.wth) == WTAP_ENCAP_BER || wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4 || wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR; } |