shithub: libdvdcss

Download patch

ref: 046d391fc90c62aa0afec5eb7c383c29b13bc885
parent: cf2eb147875db33b8aa06245b47ccea49b621d58
author: Sam Hocevar <[email protected]>
date: Sat Aug 10 16:21:54 EDT 2002

* Updated release-related files.


--- a/AUTHORS
+++ b/AUTHORS
@@ -50,6 +50,10 @@
 E: [email protected]
 D: HP-UX port of the DVD ioctls
 
+N: Alex Strelnikov
+E: [email protected]
+D: OS/2 port
+
 N: German Tischler
 E: [email protected]
 D: FreeBSD DVD input patch
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,8 +3,45 @@
 #=========================#
 
 1.2.2
-Not released yet
+Sat, 10 Aug 2002 22:15:57 +0200
 
+  * ./src/ioctl.c: fixed ReportRPC for Win32.
+  * ./src/device.h: removed unneeded exported symbols.
+  * ./src/dvdcss/dvdcss.h: marked deprecated stuff.
+  * ./test/csstest.c: more documentation.
+      see http://www.videolan.org/libdvdcss/doc/
+  * ALL: removed autotools files.
+  * ./doc/*: added doxygen files.
+  * ./src/libdvdcss.c, ./src/dvdcss/dvdcss.h: documented the API.
+  * ./src/css.c: in case of a region mismatch and when the drive needs to 
+    be reset, we read the first sector of the disc instead of closing and
+    reopening it.
+  * ./src/Makefile.am: tell libtool that libdvdcss does not have undefined
+    symbols. Fix for BeOS courtesy of Andrew Bachmann.
+  * ./src/css.c: when the ReadTitleKey ioctl failed, reopen the device before
+    falling back to the title method. Fixes the "ioctl_ReadTitleKey failed"
+    error many users have been reporting.
+  * ALL: libdvdcss builds with -ansi -pedantic. Yeah I like that :-)
+  * ./src/css.c: renamed a few functions so that they make more sense, added
+    debug messages here and there, fixed typos and speling.
+  * ./src/error.c: moved _dvdcss_error and _dvdcss_debug here.
+  * ./src/device.c: moved device reading functions from libdvdcss.c to here.
+  * ./src/device.c: errors from dvdcss_read are now properly handled; partial       reads still aren't though.
+  * ./src/libdvdcss.c: default verbosity is now 0, a library should not be
+    intrusive by default.
+  * ./test/csstest.c: additional error check.
+  * ./configure.in: removed the crap boolean_t detection.
+  * ./src/css.c: speling fixes.
+  * ALL: re-ran bootstrap with more recent autotools.
+  * ./configure.in, ./src/bsdi_ioctl.c: included config.h before testing
+    defines in the BSDi ioctl code. Added a bug fix from the author. Removed
+    the now unused parts from configure.in.
+  * ./src/Makefile.am: fix so that the bsdi_*.[hc] files make it into the
+    dist tar-ball.
+  * ./test/Makefile.am: corrected the include path for the programs in test/.
+  * ./src/ioctl.c: OS/2 port courtesy of Alex Strelnikov.
+  * ./src/css.c, ./src/libdvdcss.c: typo fixes from Adam Jones.
+  * ./src/ioctl.c: getting ReportRPC for WIN32 a bit closer to working.
   * ./src/ioctl.c: implemented ioctl_ReportKey1 for HP-UX.
   * ./src/libdvdcss.c: Win32 compilation fix.
 
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,7 @@
 
   * New upstream release.
 
- -- Samuel Hocevar <[email protected]>  Tue,  9 Jul 2002 10:40:41 +0200
+ -- Samuel Hocevar <[email protected]>  Sat, 10 Aug 2002 22:15:57 +0200
 
 libdvdcss (1.2.1-1) unstable; urgency=low
 
--- a/libdvdcss.spec
+++ b/libdvdcss.spec
@@ -8,7 +8,7 @@
 Name:		%{name}
 Version:	%{version}
 Release:	%{release}
-Summary:	Library for accessing DVDs like block device usind deCSS if needed
+Summary:        Library for accessing DVDs like block devices with transparent decryption
 Source:		%{name}-%{version}.tar.bz2
 License:	GPL
 Group:		System/Libraries
@@ -20,18 +20,17 @@
 %description
 libdvdcss is a simple library designed for accessing DVDs like a block device
 without having to bother about the decryption. The important features are:
- * Portability. Currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
+ * Portability: currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
    OpenBSD, BSD/OS, BeOS, Windows 95/98, Windows NT/2000, MacOS X, Solaris,
-   and HP-UX.
- * Simplicity. There are currently 7 functions in the API, and we intend to
-   keep this number low.
- * Freedom. libdvdcss is released under the General Public License, ensuring
-   it will stay free, and used only for free software products.
- * Just better. Unlike most similar projects, libdvdcss doesn't require the
-   region of your drive to be set.
+   HP-UX and OS/2.
+ * Adaptability: unlike most similar projects, libdvdcss doesn't require the
+   region of your drive to be set and will try its best to read from the disc
+   even in the case of a region mismatch.
+ * Simplicity: a DVD player can be built around the libdvdcss API using no
+   more than 4 or 5 library calls.
 
 %package -n %{libname}
-Summary:        A library for accessing DVDs like block device usind deCSS if needed
+Summary:        Library for accessing DVDs like block devices with transparent decryption
 Group:          System/Libraries
 Provides:       %name = %version-%release
 
@@ -38,15 +37,14 @@
 %description -n %{libname}
 libdvdcss is a simple library designed for accessing DVDs like a block device
 without having to bother about the decryption. The important features are:
- * Portability. Currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
+ * Portability: currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
    OpenBSD, BSD/OS, BeOS, Windows 95/98, Windows NT/2000, MacOS X, Solaris,
-   and HP-UX.
- * Simplicity. There are currently 7 functions in the API, and we intend to
-   keep this number low.
- * Freedom. libdvdcss is released under the General Public License, ensuring
-   it will stay free, and used only for free software products.
- * Just better. Unlike most similar projects, libdvdcss doesn't require the
-   region of your drive to be set.
+   HP-UX and OS/2.
+ * Adaptability: unlike most similar projects, libdvdcss doesn't require the
+   region of your drive to be set and will try its best to read from the disc
+   even in the case of a region mismatch.
+ * Simplicity: a DVD player can be built around the libdvdcss API using no
+   more than 4 or 5 library calls.
 
 %package -n %{libname}-devel
 Summary:        Development tools for programs which will use the %{name} library
@@ -93,8 +91,9 @@
 %{_includedir}/*
 
 %changelog
-* Not Released Yet Samuel Hocevar <[email protected]> 1.2.2-1
+* Sat Aug 10 2002 Samuel Hocevar <[email protected]> 1.2.2-1
 - new upstream release
+- even more fixes for the disc/drive region mismatch problem
 
 * Sun Jun 02 2002 Samuel Hocevar <[email protected]> 1.2.1-1
 - new upstream release
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -5,7 +5,7 @@
  *          H�kan Hjort <[email protected]>
  *
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libdvdcss.c,v 1.17 2002/08/10 14:27:26 sam Exp $
+ * $Id: libdvdcss.c,v 1.18 2002/08/10 20:21:54 sam Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -508,13 +508,6 @@
 #undef dvdcss_title
 extern int dvdcss_title ( dvdcss_t dvdcss, int i_block )
 {
-    fprintf( stderr, "WARNING: dvdcss_title() is DEPRECATED, "
-                     "use dvdcss_seek() instead\n" );
-    if( ! dvdcss->b_scrambled )
-    {
-        return 0;
-    }
-
     return _dvdcss_title( dvdcss, i_block );
 }