configure: add additional flags to LDFLAGS on OS/2

This allows to build a DLL and to open files in binary mode.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/dvd_read.c: fix a compilation warning on OS/2

-----
src/dvd_reader.c: In function `DVDOpen':
src/dvd_reader.c:561: warning: implicit declaration of function `isalpha'
-----

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
libdvdread: remove unused variables; cleanup return syntax

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Fix crash in ifoRead_VTS_PTT_SRPT()

In ifoRead_VTS_PTT_SRPT(), there's a lot of places where the
function will exit on a 'goto fail' call if the IFO is invalid.

However, the check for the PGN value is only done later.

This fixes it so that it fails earlier -- when the PGN is
originally set, and doesn't go through the other checks as well, trying to set
invalid data that will be referenced later.

See VLC trac #10459
libdvdread: src/ifo_read.c Fix off-by-one error on displaying IFO filename

Fixes incorrect warning:

libdvdread: Invalid IFO for title 2 (VTS_02_0.BU).

to:

libdvdread: Invalid IFO for title 2 (VTS_02_0.BUP).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
An IFO without a VTS TMAP is very common, remove warning

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Remove unused 'level' parameter

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Remain consistent with earlier code in function

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Clean up order of variables, display of output.

Remove redundant check for video_attr.

Rearrange checks for attributes to match same order as declarations.

Move video unknown string to last displayed, similar to audio output, and use same naming scheme.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
configure: fix build on NIOS II platform

NIOS II is a CPU architecture from Altera, which uses 'nios2' as the
architecture part of the tuple. Unfortunately, 'nios2' matches the
current '*os2*' test done by libdvdread's configure script to detect
the OS/2 operating system. This leads to build issues as the build
process of libdvdread then tries to use OS/2 specific compiler
options, that do not exist in the gcc used for Linux/NIOS2.

To fix this, this patch makes the test for OS/2 a little bit more
specific: in the case of the OS/2 operating system, the OS part of the
tuple contains just 'os2' (confirmed by looking at config.guess and
config.sub in the gnuconfig project). So using '*-os2-*' will properly
match the OS/2 operating system but not the NIOS II architecture.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Support Android

I will not comment more on the stupidity of bionic...
put changes present in 4.2.1 release in the NEWS file
Update NEWS for 5.0.0
On the road to 5.0.0
Add -Wextra compilation flags
Increase the version in the dvd_reader.h header

See Debian #532438
Ignore generated 'compile' Automake helper program and release tarballs
build: Remove ChangeLog only on maintainer-clean, not distclean

The file is automatically generated with Git, so in a distribution
tarball without Git metadata it cannot be regenerated once deleted.
Do not hardcode Tag Identifier
Merge tag 'tags/5.0.0'

libdvdread 5.0.0

This release is a major version of libdvdread.

This is an important release focused on cleaning code, fixing bugs and security issues,
simplifying the code and the buildsystem and removing old cruft.

It also adds support for Android.

It should not break the API nor the ABI of libdvdread.