[MPlayer-cvslog] CVS: main/libmpdvdkit2 libdvdread_changes.diff, 1.8, 1.9
Diego Biurrun CVS
syncmail at mplayerhq.hu
Wed Jan 4 16:31:04 CET 2006
CVS change done by Diego Biurrun CVS
Update of /cvsroot/mplayer/main/libmpdvdkit2
In directory mail:/var2/tmp/cvs-serv30445
Modified Files:
libdvdread_changes.diff
Log Message:
cosmetics: Make the patch apply without offsets.
Index: libdvdread_changes.diff
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/libdvdread_changes.diff,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- libdvdread_changes.diff 4 Jan 2006 15:25:51 -0000 1.8
+++ libdvdread_changes.diff 4 Jan 2006 15:31:01 -0000 1.9
@@ -1,7 +1,7 @@
diff -Naur dvdread.orig/bswap.h dvdread/bswap.h
--- dvdread.orig/bswap.h 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/bswap.h 2005-06-23 00:19:10.000000000 +0200
-@@ -20,8 +24,6 @@
+@@ -20,8 +20,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -10,7 +10,7 @@
#if defined(WORDS_BIGENDIAN)
/* All bigendian systems are fine, just ignore the swaps. */
#define B2N_16(x) (void)(x)
-@@ -59,13 +61,57 @@
+@@ -59,13 +57,57 @@
#define B2N_32(x) x = be32toh(x)
#define B2N_64(x) x = be64toh(x)
@@ -73,7 +73,7 @@
diff -Naur dvdread.orig/dvd_input.c dvdread/dvd_input.c
--- dvdread.orig/dvd_input.c 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/dvd_input.c 2005-06-23 00:30:23.000000000 +0200
-@@ -37,7 +41,7 @@
+@@ -37,7 +37,7 @@
#ifdef HAVE_DVDCSS_DVDCSS_H
/* linking to libdvdcss */
@@ -82,7 +82,7 @@
#define DVDcss_open(a) dvdcss_open((char*)(a))
#define DVDcss_close dvdcss_close
#define DVDcss_seek dvdcss_seek
-@@ -74,7 +78,7 @@
+@@ -74,7 +74,7 @@
dvd_input_t dev;
/* Allocate the handle structure */
@@ -91,7 +91,7 @@
if(dev == NULL) {
fprintf(stderr, "libdvdread: Could not allocate memory.\n");
return NULL;
-@@ -320,8 +324,10 @@
+@@ -320,8 +320,10 @@
fprintf(stderr, "DVDCSS_METHOD %s\n", psz_method);
fprintf(stderr, "DVDCSS_VERBOSE %s\n", psz_verbose);
*/
@@ -106,7 +106,7 @@
diff -Naur dvdread.orig/dvd_reader.c dvdread/dvd_reader.c
--- dvdread.orig/dvd_reader.c 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/dvd_reader.c 2005-06-23 00:19:10.000000000 +0200
-@@ -32,24 +36,36 @@
+@@ -32,24 +32,36 @@
#include <limits.h>
#include <dirent.h>
@@ -146,7 +146,7 @@
struct dvd_reader_s {
/* Basic information. */
-@@ -194,6 +210,13 @@
+@@ -194,6 +206,13 @@
}
@@ -160,7 +160,7 @@
/**
* Open a DVD image or block device file.
-@@ -278,11 +301,16 @@
+@@ -278,11 +297,16 @@
Darwin /dev/rdisk0, it needs to be the raw device
BSD/OS /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will do) */
static char *bsd_block2char( const char *path )
@@ -178,7 +178,7 @@
return (char *) strdup( path );
/* Replace "/dev/" with "/dev/r" */
-@@ -292,6 +320,7 @@
+@@ -292,6 +316,7 @@
return new_path;
}
@@ -186,7 +186,7 @@
#endif
dvd_reader_t *DVDOpen( const char *path )
-@@ -303,6 +332,16 @@
+@@ -303,6 +328,16 @@
if( path == NULL )
return 0;
@@ -203,7 +203,7 @@
ret = stat( path, &fileinfo );
if( ret < 0 ) {
/* If we can't stat the file, give up */
-@@ -310,6 +349,7 @@
+@@ -310,6 +345,7 @@
perror("");
return 0;
}
@@ -211,7 +211,7 @@
/* Try to open libdvdcss or fall back to standard functions */
have_css = dvdinput_setup();
-@@ -335,7 +375,7 @@
+@@ -335,7 +371,7 @@
char *path_copy;
#if defined(SYS_BSD)
struct fstab* fe;
@@ -220,7 +220,7 @@
FILE *mntfile;
#endif
-@@ -350,7 +390,9 @@
+@@ -350,7 +386,9 @@
if( cdir >= 0 ) {
chdir( path_copy );
new_path = getcwd( NULL, PATH_MAX );
@@ -230,7 +230,7 @@
close( cdir );
if( new_path ) {
free( path_copy );
-@@ -406,7 +448,7 @@
+@@ -406,7 +444,7 @@
}
fclose( mntfile );
}
@@ -239,7 +239,7 @@
mntfile = fopen( MOUNTED, "r" );
if( mntfile ) {
struct mntent *me;
-@@ -425,6 +467,9 @@
+@@ -425,6 +463,9 @@
}
fclose( mntfile );
}
@@ -249,7 +249,7 @@
#endif
if( !dev_name ) {
fprintf( stderr, "libdvdread: Couldn't find device name.\n" );
-@@ -615,8 +660,8 @@
+@@ -615,8 +656,8 @@
}
if( dvd->css_state == 1 /* Need key init */ ) {
@@ -260,7 +260,7 @@
}
/*
if( dvdinput_title( dvd_file->dvd->dev, (int)start ) < 0 ) {
-@@ -915,7 +960,7 @@
+@@ -915,7 +956,7 @@
return (ssize_t)ret;
}
@@ -289,7 +289,7 @@
diff -Naur dvdread.orig/dvd_udf.c dvdread/dvd_udf.c
--- dvdread.orig/dvd_udf.c 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/dvd_udf.c 2005-06-23 00:19:10.000000000 +0200
-@@ -33,7 +37,9 @@
+@@ -33,7 +33,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -323,7 +323,7 @@
diff -Naur dvdread.orig/ifo_print.h dvdread/ifo_print.h
--- dvdread/ifo_print.h 2002-08-15 22:13:21.000000000 +0200
+++ /home/diego/src/mplayer/vanilla/libmpdvdkit2/ifo_print.h 2005-12-29 13:13:21.000000000 +0100
-@@ -20,8 +24,8 @@
+@@ -20,8 +20,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -365,7 +365,7 @@
diff -Naur dvdread.orig/ifo_read.h dvdread/ifo_read.h
--- dvdread.orig/ifo_read.h 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/ifo_read.h 2005-06-23 00:19:10.000000000 +0200
-@@ -20,8 +24,8 @@
+@@ -20,8 +20,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -379,7 +379,7 @@
diff -Naur dvdread.orig/ifo_types.h dvdread/ifo_types.h
--- dvdread.orig/ifo_types.h 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/ifo_types.h 2005-06-23 00:19:10.000000000 +0200
-@@ -21,7 +25,7 @@
+@@ -21,7 +21,7 @@
*/
#include <inttypes.h>
@@ -388,7 +388,7 @@
#undef ATTRIBUTE_PACKED
-@@ -398,6 +398,55 @@
+@@ -394,6 +394,55 @@
} ATTRIBUTE_PACKED user_ops_t;
/**
@@ -444,7 +444,7 @@
* Program Chain Information.
*/
typedef struct {
-@@ -406,8 +455,8 @@
+@@ -402,8 +451,8 @@
uint8_t nr_of_cells;
dvd_time_t playback_time;
user_ops_t prohibited_ops;
@@ -459,7 +459,7 @@
diff -Naur dvdread.orig/nav_print.h dvdread/nav_print.h
--- dvdread.orig/nav_print.h 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/nav_print.h 2005-06-23 00:19:10.000000000 +0200
-@@ -20,7 +24,7 @@
+@@ -20,7 +20,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -472,7 +472,7 @@
diff -Naur dvdread.orig/nav_read.h dvdread/nav_read.h
--- dvdread.orig/nav_read.h 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/nav_read.h 2005-06-23 00:19:10.000000000 +0200
-@@ -19,7 +23,7 @@
+@@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -484,7 +484,7 @@
diff -Naur dvdread.orig/nav_types.h dvdread/nav_types.h
--- dvdread.orig/nav_types.h 2005-06-23 00:18:54.000000000 +0200
+++ dvdread/nav_types.h 2005-06-23 00:19:10.000000000 +0200
-@@ -30,7 +34,7 @@
+@@ -30,7 +30,7 @@
*/
#include <inttypes.h>
More information about the MPlayer-cvslog
mailing list