videolan:libdvdread.git
4 years agoDo not needlessly cast the return value of calloc/malloc.
Diego Biurrun [Fri, 29 Nov 2013 18:02:12 +0000 (13:02 -0500)]
Do not needlessly cast the return value of calloc/malloc.

4 years agobuild: proper dependencies for ChangeLog generation target
Diego Biurrun [Mon, 18 Nov 2013 11:56:40 +0000 (12:56 +0100)]
build: proper dependencies for ChangeLog generation target

This fixes the ChangeLog file getting continuously rebuilt instead
of after each Git commit, which is the case now.

4 years agoMakefile.am: reorder in alphabetic order
Jean-Baptiste Kempf [Mon, 18 Nov 2013 11:54:11 +0000 (12:54 +0100)]
Makefile.am: reorder in alphabetic order

4 years agom4: remove unwanted tabs
Jean-Baptiste Kempf [Mon, 18 Nov 2013 11:53:42 +0000 (12:53 +0100)]
m4: remove unwanted tabs

4 years agoDoxygen: remove trailing spaces
Jean-Baptiste Kempf [Mon, 18 Nov 2013 11:52:52 +0000 (12:52 +0100)]
Doxygen: remove trailing spaces

4 years agoRemove obsolete script.
Diego Elio Pettenò [Mon, 18 Feb 2013 17:35:20 +0000 (09:35 -0800)]
Remove obsolete script.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agobuild: follow in the path of libdvdcss for building.
Diego Elio Pettenò [Mon, 18 Feb 2013 17:35:20 +0000 (09:35 -0800)]
build: follow in the path of libdvdcss for building.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agoUpdate .gitignore, since there is no recursive build system anymore
Jean-Baptiste Kempf [Mon, 18 Nov 2013 11:36:15 +0000 (12:36 +0100)]
Update .gitignore, since there is no recursive build system anymore

4 years agobuild: install basic documentation files.
Diego Elio Pettenò [Wed, 6 Feb 2013 18:46:20 +0000 (10:46 -0800)]
build: install basic documentation files.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agoUpdate base documentation.
Diego Elio Pettenò [Wed, 6 Feb 2013 18:38:01 +0000 (10:38 -0800)]
Update base documentation.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agobuild: cleanup configure
Diego Elio Pettenò [Wed, 6 Feb 2013 18:34:19 +0000 (10:34 -0800)]
build: cleanup configure

This includes a new way to identify the dlopen library and dvdcss
(based on pkg-config) and dropping a bunch of unused tests.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agobuild: drop dvdread-config and dvdread.m4.
Diego Elio Pettenò [Wed, 6 Feb 2013 18:09:27 +0000 (10:09 -0800)]
build: drop dvdread-config and dvdread.m4.

Use pkg-config to find the library, as that's more reliable and easier.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agoAdd a .gitignore file.
Diego Elio Pettenò [Wed, 6 Feb 2013 18:08:18 +0000 (10:08 -0800)]
Add a .gitignore file.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agobuild: rewrite build system to not be recursive.
Diego Elio Pettenò [Wed, 6 Feb 2013 18:06:11 +0000 (10:06 -0800)]
build: rewrite build system to not be recursive.

This also removes a bunch of useless rules

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agoconfigure: drop broken cross-compiling note.
Diego Elio Pettenò [Wed, 6 Feb 2013 17:48:58 +0000 (09:48 -0800)]
configure: drop broken cross-compiling note.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agobuild: remove non-autotools based build system.
Diego Elio Pettenò [Wed, 6 Feb 2013 17:46:52 +0000 (09:46 -0800)]
build: remove non-autotools based build system.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agoRename UDFReadBlocksRaw to InternalUDFReadBlocksRaw to avoid exporting it on the...
Diego Elio Pettenò [Sun, 28 Apr 2013 19:14:21 +0000 (12:14 -0700)]
Rename UDFReadBlocksRaw to InternalUDFReadBlocksRaw to avoid exporting it on the library.

4 years agoStop exposing symbols that were not exported by the library anyway.
Diego Elio Pettenò [Sun, 28 Apr 2013 19:12:31 +0000 (12:12 -0700)]
Stop exposing symbols that were not exported by the library anyway.

4 years agoDelete outdated DEVELOPMENT-POLICY
Jean-Baptiste Kempf [Wed, 6 Nov 2013 13:40:25 +0000 (14:40 +0100)]
Delete outdated DEVELOPMENT-POLICY

4 years agoUpdate AUTHORS
Jean-Baptiste Kempf [Wed, 6 Nov 2013 13:39:46 +0000 (14:39 +0100)]
Update AUTHORS

4 years agodvd_udf: Remove some set but not used variables
Diego Biurrun [Wed, 6 Nov 2013 12:42:43 +0000 (13:42 +0100)]
dvd_udf: Remove some set but not used variables

4 years agoFix undefined variable warning in md5.h
Erik Auerswald [Fri, 25 Oct 2013 16:52:04 +0000 (18:52 +0200)]
Fix undefined variable warning in md5.h

4 years agoUse correct name of the libdvdcss DLL on Windows
Roger Pack [Fri, 25 Oct 2013 16:48:41 +0000 (18:48 +0200)]
Use correct name of the libdvdcss DLL on Windows

4 years agoReplace deprecated dvdcss_title() function by dvdcss_seek().
Diego Biurrun [Sun, 28 Apr 2013 19:02:02 +0000 (21:02 +0200)]
Replace deprecated dvdcss_title() function by dvdcss_seek().

4 years agoDo not extract libdvdcss version via dvdcss_interface_2.
Diego Biurrun [Sun, 28 Apr 2013 17:50:29 +0000 (19:50 +0200)]
Do not extract libdvdcss version via dvdcss_interface_2.

The variable is deprecated and only informs about the
libdvdcss API version, which carries no meaning nowadays.

4 years agoReplace uses of the deprecated dvdcss_handle type by dvdcss_t.
Diego Biurrun [Sun, 28 Apr 2013 17:48:23 +0000 (19:48 +0200)]
Replace uses of the deprecated dvdcss_handle type by dvdcss_t.

4 years agoAdd missing strings.h #include for strcasecmp() / strncasecmp().
Diego Biurrun [Sun, 28 Apr 2013 17:44:49 +0000 (19:44 +0200)]
Add missing strings.h #include for strcasecmp() / strncasecmp().

4 years agoUse the correct libraries for linker test
Rafaël Carré [Tue, 19 Feb 2013 14:02:41 +0000 (15:02 +0100)]
Use the correct libraries for linker test

4 years agoFix pkg-config file for libdvdread when linking in libdvdcss
Brad Smith [Mon, 11 Mar 2013 03:12:33 +0000 (23:12 -0400)]
Fix pkg-config file for libdvdread when linking in libdvdcss

I noticed support for linking to libdvdcss to libdvdread was
added. This fixes the pkg-config file to link in libdvdcss
to the respect project only when not using shared libs.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agoAdd an error message
Erik Hovland [Tue, 5 Feb 2013 17:48:10 +0000 (18:48 +0100)]
Add an error message

4 years agoUpdate src/ifo_print.c
Benjamin Kerensa [Fri, 4 Jan 2013 19:10:43 +0000 (11:10 -0800)]
Update src/ifo_print.c

Fix Spelling: Address table not Adress table.

5 years agoImprove dlopen support on mingw
John Stebbins [Tue, 16 Oct 2012 17:45:50 +0000 (10:45 -0700)]
Improve dlopen support on mingw

Not all mingw build environments have libdl.  And those that do often
only have it in dll form which would have to be distributed with the
application.  So allowing use of the builtin version of dlopen in
dvdread is useful. This patch does the right thing if dlopen is not
found on the system and it adds a configure option to force use of the
builtin dlopen.

It also seems that building dlopen broke at some point.  #includes
pointing to the wrong places.

5 years agoMake sure the input device is closed on failure.
Erik Hovland [Mon, 21 May 2012 23:04:21 +0000 (16:04 -0700)]
Make sure the input device is closed on failure.

In the error path, the dvd input device is not cleaned when the error
path is traversed.

5 years agoBelieve config.h instead of trying to detect endianness
Ganael Laplanche [Mon, 30 Apr 2012 18:37:16 +0000 (11:37 -0700)]
Believe config.h instead of trying to detect endianness

A few macros in md5.c were in that file trying to detect endian when
that wasn't necessary. config.h should already know what endian the
compilation is for. This commit uses config.h instead.

5 years agoFix endian detection output
Erik Hovland [Mon, 30 Apr 2012 18:34:43 +0000 (11:34 -0700)]
Fix endian detection output

When bigendian was detected it was not being written to config.h because
the test lacked the file output redirection.

5 years agoRemove dvdread_incdir
Erik Hovland [Mon, 30 Apr 2012 18:22:30 +0000 (11:22 -0700)]
Remove dvdread_incdir

dvdread_incdir is redundant when configure2 already has incdir and it
seems that naming convention is more in-line w/ the rest of the script.

5 years agoFix mount point -> device name on OSX
Rafaël Carré [Tue, 17 Apr 2012 19:03:43 +0000 (12:03 -0700)]
Fix mount point -> device name on OSX

getfsent() only returns '/' entry on my system (10.8)

I only have 10.7 around to test, but this bug was reported ages ago:
https://trac.videolan.org/vlc/ticket/4069

I don't have a BSD, so I can't test it on BSD too but I don't see why
this code couldn't be shared on all BSD.

5 years agolibdvdread uses internal dlfcn on W32, unconditionally
LRN [Tue, 17 Apr 2012 17:40:41 +0000 (10:40 -0700)]
libdvdread uses internal dlfcn on W32, unconditionally

On W32 libdvdread unconditionally uses msvc/contrib/dlfcn.c
While this allows libdvdread to be compiled out of the box, it
prevents it from linking to any other dlfcn implementation. Namely -
to dlfcn-win32 [1] (which is somewhat more POSIX-compliant).

Note that LDFLAGS modification should go AFTER (!) all AC_CHECK_LIB
calls, because -no-undefined is no longer valid as a compiler option.

[1] http://code.google.com/p/dlfcn-win32/

6 years agoAdd --enable-libdvdcss to the autotools install
Rafaël Carré [Wed, 30 Nov 2011 21:41:31 +0000 (13:41 -0800)]
Add --enable-libdvdcss to the autotools install

This commit adds the argument --enable-libdvdcss (off by default). When
used it directly links libdvdcss into libdvdread. This prevents
libdvdread from having to use dlopen() to get at the libdvdcss
functions.

Currently this feature is used when building VLC for mingw32 and darwin.

6 years agodvd_udf.h and bitreader.h are not in src
KO Myung-Hun [Thu, 17 Nov 2011 00:25:08 +0000 (16:25 -0800)]
dvd_udf.h and bitreader.h are not in src

Due to this, 'make distdir' fails.

6 years agoRemove an over aggressive 0 -> NULL change
Erik Hovland [Tue, 15 Nov 2011 00:46:13 +0000 (16:46 -0800)]
Remove an over aggressive 0 -> NULL change

6 years agoComment to explain the need of config.h
Erik Hovland [Tue, 15 Nov 2011 00:38:45 +0000 (16:38 -0800)]
Comment to explain the need of config.h

6 years agoReplace tab w/ spaces
Erik Hovland [Tue, 15 Nov 2011 00:34:35 +0000 (16:34 -0800)]
Replace tab w/ spaces

6 years agoSanitize PTT start offsets
John Stebbins [Sat, 12 Nov 2011 20:29:23 +0000 (12:29 -0800)]
Sanitize PTT start offsets

If the start offset points past the last_byte (outside the region read) stop
reading PTTs and adjust nr_of_srpts.

Fixes Transformers 3.

6 years agoUpdate the TODO file
Erik Hovland [Mon, 10 Oct 2011 22:49:49 +0000 (15:49 -0700)]
Update the TODO file

6 years agoUse NULL instead of 0, this is C kids
Erik Hovland [Mon, 10 Oct 2011 22:08:24 +0000 (15:08 -0700)]
Use NULL instead of 0, this is C kids

6 years agoCheck ifoRead_VTS before continuing
Erik Hovland [Mon, 10 Oct 2011 22:07:14 +0000 (15:07 -0700)]
Check ifoRead_VTS before continuing

6 years agoClear pf_temp to make sure it is initialized
Erik Hovland [Mon, 10 Oct 2011 21:59:04 +0000 (14:59 -0700)]
Clear pf_temp to make sure it is initialized

7 years agoCheck the return value for potential errors
Erik Hovland [Thu, 24 Jun 2010 22:03:03 +0000 (15:03 -0700)]
Check the return value for potential errors

5 years agoRemove erroneous free().
Ingo Brückl [Wed, 12 Dec 2012 14:21:16 +0000 (14:21 +0000)]
Remove erroneous free().

The address operator is wrong and the memory actually meant
to be freed has already been freed by ifoFree_PGC() anyway.

5 years agoFix a segmentation fault hit when reading the DVD 'The Express'.
Doug Springer [Sun, 9 Dec 2012 22:03:38 +0000 (22:03 +0000)]
Fix a segmentation fault hit when reading the DVD 'The Express'.

It prevents a read/write beyond end of an array due to using a length value
taken from the DVD, which can exceed the allocated size.

https://bugs.launchpad.net/ubuntu/+source/libdvdread/+bug/894170

Signed-off-by: Bryce Harrington <bryce@canonical.com>
5 years agoAccommodate duplicate language units and pgcs.
John Stebbins [Sun, 9 Dec 2012 21:07:59 +0000 (21:07 +0000)]
Accommodate duplicate language units and pgcs.

Many dvd's are showing up that have titles that have numerous repeated
language unit tables and pgc's. The new release "Up" is an example.  I
believe "Dark Knight" also exhibits this. When scanning such discs
with lsdvd (and other programs that scan all titles), libdvdread will
consume many GB of data for these repeated elements and gets very slow
(e.g hours to read all titles) on OS X due to reading the duplicate
data from uncached raw devices.

This patch detects duplicates and reference counts pgc's and pgcit's.
When a duplicate is detected, a reference count is incremented instead
of allocating new memory and re-reading the data.

6 years agoUpdate version number in changelogs.
Dominik Mierzejewski [Sat, 8 Oct 2011 22:04:05 +0000 (22:04 +0000)]
Update version number in changelogs.

6 years agoPoint project website URL to the new location.
Dominik Mierzejewski [Sat, 8 Oct 2011 21:49:29 +0000 (21:49 +0000)]
Point project website URL to the new location.

6 years agoBump version to 4.2.0 for release.
Dominik Mierzejewski [Fri, 7 Oct 2011 20:20:59 +0000 (20:20 +0000)]
Bump version to 4.2.0 for release.

6 years agoUse NULL instead of 0 consistently.
Frédéric Marchal [Fri, 7 Oct 2011 16:56:02 +0000 (16:56 +0000)]
Use NULL instead of 0 consistently.

Since this is C and not C++, NULL is the stylistic choice
for pointer assignments and checking. This patch
 changes all
places were ptl_mait is used in ifo_read.c.

6 years agoFix memory leaks.
Rémi Duraffort [Thu, 6 Oct 2011 21:02:00 +0000 (21:02 +0000)]
Fix memory leaks.

6 years agoUpdate ChangeLog.
Dominik Mierzejewski [Thu, 6 Oct 2011 17:23:06 +0000 (17:23 +0000)]
Update ChangeLog.

6 years agoFix segfault when reading certain DVDs, for example "Thor".
Alexander Roalter [Thu, 6 Oct 2011 12:10:01 +0000 (12:10 +0000)]
Fix segfault when reading certain DVDs, for example "Thor".
This results from a new anti-copy scheme where the real video_ts.ifo
is hidden. Use of the decoy video_ts.ifo results in a unplayable DVD.

6 years agoMake sure vts_ptt_srpt->title is freed
Erik Hovland [Sat, 13 Aug 2011 17:28:48 +0000 (17:28 +0000)]
Make sure vts_ptt_srpt->title is freed

title was being leaked when the error path is hit in this function.

6 years agoFix crash when PTT is too short
John Stebbins [Sat, 13 Aug 2011 17:28:45 +0000 (17:28 +0000)]
Fix crash when PTT is too short

The PTT that is allocated and read is smaller than what gets referenced.
The data is byte-swapped in place which results in writes to memory
locations outside the allocated region. Region 1 True Grit is an
example of this.

6 years agoConditional style change
Erik Hovland [Sat, 13 Aug 2011 17:28:43 +0000 (17:28 +0000)]
Conditional style change

6 years agoClean up error paths.
Erik Hovland [Sat, 13 Aug 2011 17:28:40 +0000 (17:28 +0000)]
Clean up error paths.

Clean up the error paths of the function using goto.

6 years agoClean up malloc calls
Erik Hovland [Sat, 13 Aug 2011 17:28:37 +0000 (17:28 +0000)]
Clean up malloc calls

Both malloc calls have a cast to the type of the pointer's
type. This is not necessary in C and is poor style.

6 years agoReplace deprecated MOUNTED with _PATH_MOUNTED.
Reimar Döffinger [Wed, 15 Jun 2011 18:09:15 +0000 (18:09 +0000)]
Replace deprecated MOUNTED with _PATH_MOUNTED.

This has the side-effect of fixing compilation with Android compiler.
(I am not aware of any good reason to compile libdvdread for Android though)

6 years agoUse a single = instead of ==
Mike Castle [Sat, 12 Feb 2011 20:30:23 +0000 (20:30 +0000)]
Use a single = instead of ==

test in the bourne shell and its derivatives actually specifies
= as the test for equality. == was accepted for a long time. But
dash does not. configure2 used == for a test. Which caused debian
to break if dash is used. This changes it to =.

6 years agoReport which index failed reading
Frédéric Marchal [Sun, 30 Jan 2011 23:44:16 +0000 (23:44 +0000)]
Report which index failed reading

When reading the parental management information, report what
index if that read failed. This should improve error reporting.

6 years agoReplaces the hard-coded values
Frédéric Marchal [Sun, 30 Jan 2011 23:44:13 +0000 (23:44 +0000)]
Replaces the hard-coded values

The parental management structure has ratings levels. The size
of the bit mask is constant but magic values were being used
instead of named constants. This commit changes them to named
constants.

6 years agoInhibit double free of parental management information
Frédéric Marchal [Sun, 30 Jan 2011 23:44:09 +0000 (23:44 +0000)]
Inhibit double free of parental management information

If reading the country data fails the point to the parental
management information is not nulled out. So it is possible for
the same structure to be freed twice. To inhibit this whenever
the country data read fails the structure pointer is assigned
null.

7 years agoMove UDFReadBlocksRaw declaration to dvdread_internal.h.
Diego Biurrun [Sat, 11 Sep 2010 15:15:43 +0000 (15:15 +0000)]
Move UDFReadBlocksRaw declaration to dvdread_internal.h.

7 years agoFix some spelling issues
Reinhard Tartler [Sun, 8 Aug 2010 22:49:28 +0000 (22:49 +0000)]
Fix some spelling issues

7 years agoMark a large number of functions not used outside of the file as static.
Diego Biurrun [Fri, 6 Aug 2010 23:17:36 +0000 (23:17 +0000)]
Mark a large number of functions not used outside of the file as static.

7 years agoProvide BUP file support for more issues.
Erik Hovland [Sat, 31 Jul 2010 00:21:01 +0000 (00:21 +0000)]
Provide BUP file support for more issues.

The BUP file is only opened when the IFO file open fails. We have a
few times where file corruption could happen and we could use the
BUP instead. This patch attempts to address this by trying to
open the BUP if there is any reported error w/ the IFO. Inspiration
for this patch came from Rich E, thanks for the detailed bug
report and attempts at using earlier patches.

7 years agoRemove the special case test for uid=0
John Stebbins [Sat, 31 Jul 2010 00:10:33 +0000 (00:10 +0000)]
Remove the special case test for uid=0

Some package tools run configure as fakeroot.  This triggers code in
configure.ac that detects uid 0 to hardcode the installation path of the
m4 macros to the system aclocal macro dir.  This ignores any DESTDIR the
packaging tools may have set and installation fails since it attempts to
write to a system dir without proper permissions.

7 years agoFix a spelling error in ifo_read.c
Erik Hovland [Sat, 31 Jul 2010 00:10:31 +0000 (00:10 +0000)]
Fix a spelling error in ifo_read.c

7 years agoFix the test of whether disk names should be raw devices
Erik Hovland [Sat, 31 Jul 2010 00:10:28 +0000 (00:10 +0000)]
Fix the test of whether disk names should be raw devices

Darwin and BSD platforms disk device names might have to be converted
to raw device names. There is a check for this in the code. But it is
missing a very important 'r'. This fix made it into the 0.9.7 release
but did not make the commit to this repo when this repo was given the
API changes for 0.9.7 because it was not clear whether the fix was
still relevant.

7 years agoin DVDOPen() use isalpha() rather than checking the first char of the device against...
Nico Sabbi [Tue, 20 Jul 2010 09:30:13 +0000 (09:30 +0000)]
in DVDOPen() use isalpha() rather than checking the first char of the device against 'A'..'Z'

7 years agoin OS2 and WIN32 when CSS is not available print the correct message using path rathe...
Nico Sabbi [Tue, 20 Jul 2010 08:09:41 +0000 (08:09 +0000)]
in OS2 and WIN32 when CSS is not available print the correct message using path rather than dev_name;

7 years agoas for win32 check for \video_ts as /video_ts in OS/2;
KO Myung-Hun [Tue, 20 Jul 2010 08:01:19 +0000 (08:01 +0000)]
as for win32 check for \video_ts as /video_ts in OS/2;

7 years agoAs for win32 strip off the trailing \ if it is not a drive
KO Myung-Hun [Tue, 20 Jul 2010 07:55:32 +0000 (07:55 +0000)]
As for win32 strip off the trailing \ if it is not a drive
on OS/2.

7 years agoin OS/2 Use DVDOpenImageFile() only if it is a drive;
KO Myung-Hun [Tue, 20 Jul 2010 07:51:43 +0000 (07:51 +0000)]
in OS/2 Use  DVDOpenImageFile() only if it is a drive;

7 years agoWin32: large file support under Mingw to go over 2G limits
John Stebbins [Tue, 1 Jun 2010 17:07:13 +0000 (17:07 +0000)]
Win32: large file support under Mingw to go over 2G limits

7 years ago in _WIN32 do a sanity check against \video_ts in addition to /video_ts, because...
John Stebbins [Tue, 1 Jun 2010 07:27:56 +0000 (07:27 +0000)]
 in _WIN32 do a sanity check against \video_ts in addition to /video_ts, because both paths are admitted;

7 years agofixed buffer size dimension in UDFGetPVD()
John Stebbins [Fri, 28 May 2010 13:24:16 +0000 (13:24 +0000)]
fixed buffer size dimension in UDFGetPVD()

7 years agoDetect arch endianness. src/bswap.h depends on WORD_BIGENDIAN being
Dominik Mierzejewski [Fri, 5 Mar 2010 21:16:01 +0000 (21:16 +0000)]
Detect arch endianness. src/bswap.h depends on WORD_BIGENDIAN being
defined on big-endian arch to select appropriate macros. configure2
did not produce that definition in config.h, so the code ended up
being incorrect on ppc and other big-endian arches.

Approved by Nico.

7 years agoadd bounds checking in UDFFileEntry
Jindrich Makovicka [Thu, 4 Mar 2010 19:14:17 +0000 (19:14 +0000)]
add bounds checking in UDFFileEntry

Some badly mastered DVDs can have set bogus lengths of the Allocation
Descriptors, causing a segfault. This check ensures that the total entry
length does not exceed DVD logical block size before processing the entry.

7 years ago100l, initialize file descriptor to -1, not 0.
Reimar Döffinger [Sat, 30 Jan 2010 15:15:23 +0000 (15:15 +0000)]
100l, initialize file descriptor to -1, not 0.
Fixes libdvdread closing stdin if it can't open the file/device.

8 years agoExpose the dvd_stat_t struct.
Erik Hovland [Mon, 7 Dec 2009 03:50:20 +0000 (03:50 +0000)]
Expose the dvd_stat_t struct.

The commits that brought in the DVDFileStat() function from libdvdread
0.9.7 incorrectly made the stat struct opaque. This can't be done because
the API does not use any allocation or deallocation code. So callers of
DVDFileStat cannot declare stat structs. Since we are attempting to
maintain the API compatibility w/ those releases of libdvdread, the
struct has been brought into the header. Thanks again to Rathann for
bringing this issue to the dvdnav list. And thanks to the original
bug reportera(O. Rolland) to fedora.

8 years agoUpdate ChangeLog for next release.
Dominik Mierzejewski [Sat, 14 Nov 2009 21:00:17 +0000 (21:00 +0000)]
Update ChangeLog for next release.

8 years agoRemove trailing whitespace.
Dominik Mierzejewski [Sat, 14 Nov 2009 20:59:38 +0000 (20:59 +0000)]
Remove trailing whitespace.

8 years agobump version due to DVDFileStat addition
Dominik Mierzejewski [Sat, 26 Sep 2009 22:23:58 +0000 (22:23 +0000)]
bump version due to DVDFileStat addition

8 years agocosmetics: remove trailing whitespace
Dominik Mierzejewski [Sat, 26 Sep 2009 22:23:26 +0000 (22:23 +0000)]
cosmetics: remove trailing whitespace

8 years agoAdd *BSD porting bits from 0.9.7
Erik Hovland [Wed, 2 Sep 2009 01:44:16 +0000 (01:44 +0000)]
Add *BSD porting bits from 0.9.7

Both version 0.9.6 and 0.9.7 had some porting code put in for the
*BSDs. This code is untested by me, but I bet the OpenSolaris
and *BSD folk would love to have it.

8 years agoAdd DVD file stat from version 0.9.7 to libdvdread
Erik Hovland [Wed, 2 Sep 2009 01:43:21 +0000 (01:43 +0000)]
Add DVD file stat from version 0.9.7 to libdvdread

A new function to do an informational read of the DVD file handle was
introduced to libdvdread 0.9.7 (or was it .6). Since libdvdread at
mplayerhq imported an older version of dvdread/dvdnav this part of
the API was not available. This commit places that function into
the library making this library complete in reference to 0.9.7.

8 years agoUse parens to make the 'is present' mask explicit
Erik Hovland [Wed, 2 Sep 2009 01:43:18 +0000 (01:43 +0000)]
Use parens to make the 'is present' mask explicit

W/o parens the check for the 'is present' mask will not work right
because the ! operator will evaluate first. But by wrapping the
& operation in parens, we make it explicit that this goes first.
And so the is present flag will be properly evaluated in the
conditional

8 years agoRemove empty if clause.
Erik Hovland [Wed, 2 Sep 2009 01:34:23 +0000 (01:34 +0000)]
Remove empty if clause.

An if clause is empty. This makes the else do all of the work
and still ends up w/ a larger object file because the if clause
is stuck into the object file. By moving to the logical not of
the if we can remove the empty clause.

8 years agoreplaced conditional checks on MSC with _WIN32 to permit MINGW to mount and decrypt...
John Stebbins [Tue, 4 Aug 2009 21:21:49 +0000 (21:21 +0000)]
replaced conditional checks on MSC with _WIN32 to permit MINGW to mount and decrypt images;

8 years agoin OS/2 the device must be opened in binary mode;
KO Myung-Hun [Mon, 8 Jun 2009 22:02:37 +0000 (22:02 +0000)]
in OS/2 the device must be opened in binary mode;

8 years agoAdd #include for config.h. Several preprocessor definitions were used without
Diego Biurrun [Tue, 5 May 2009 17:27:14 +0000 (17:27 +0000)]
Add #include for config.h. Several preprocessor definitions were used without
config.h being present. This would break the build if the definitions were not
provided on the compiler command line.

8 years agoremoved unnecessary config.h;
Erik Hovland [Tue, 28 Apr 2009 13:26:33 +0000 (13:26 +0000)]
removed unnecessary config.h;