Wireshark-bugs: [Wireshark-bugs] [Bug 7196] New: vwr_open() returns -1 for unknown files -> can'
Date: Wed, 25 Apr 2012 14:20:35 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7196

           Summary: vwr_open() returns -1 for unknown files -> can't load
                    mpeg2 ts files
           Product: Wireshark
           Version: SVN
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: wireshark@xxxxxxxxx


Build Information:
TShark 1.7.2 (SVN Rev 42239 from /trunk)

Copyright 1998-2012 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GLib 2.24.2, with libpcap, with libz 1.2.3.4, without
POSIX capabilities, without SMI, without c-ares, without ADNS, without Lua,
without Python, with GnuTLS 2.8.6, with Gcrypt 1.4.5, with MIT Kerberos,
without
GeoIP.

Running on Linux 2.6.32-5-amd64, with locale en_US.UTF-8, with libpcap version
1.1.1, with libz 1.2.3.4.

Built using gcc 4.4.5.

--
Dear all,

I just realized that MPEG2 TS files can't be loaded. The reason is that
vrw_open() returns -1 when it processes an mpeg2 ts file. Therefore, other
fileformats' open functions (e.g. mp2t_open() are not called).

I assume that vwr_open() should return 0 for a file it does not recognize.
Trivial patch is attached.

Best regards,

   Martin

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.