summaryrefslogtreecommitdiff
path: root/multimedia/libdvdread/patches/patch-ab
blob: 2915292d86e85acb2ca427eb782e8e3dd661d6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ab,v 1.2 2004/06/21 16:14:14 drochner Exp $

--- dvdread/dvd_reader.c.orig	2003-02-13 23:31:21.000000000 +0100
+++ dvdread/dvd_reader.c
@@ -282,7 +282,7 @@ static char *bsd_block2char( const char 
     char *new_path;
 
     /* If it doesn't start with "/dev/" or does start with "/dev/r" exit */ 
-    if( !strncmp( path, "/dev/",  5 ) || strncmp( path, "/dev/r", 6 ) ) 
+    if( strncmp( path, "/dev/",  5 ) || !strncmp( path, "/dev/r", 6 ) ) 
       return (char *) strdup( path );
 
     /* Replace "/dev/" with "/dev/r" */
@@ -915,7 +915,7 @@ ssize_t DVDReadBlocks( dvd_file_t *dvd_f
     return (ssize_t)ret;
 }
 
-int32_t DVDFileSeek( dvd_file_t *dvd_file, int32_t offset )
+int32_t DVDFileSeek( dvd_file_t *dvd_file, int offset )
 {
     /* Check arguments. */
     if( dvd_file == NULL || offset < 0 )
@@ -1033,7 +1033,7 @@ int DVDISOVolumeInfo( dvd_reader_t *dvd,
 
   /* Check arguments. */
   if( dvd == NULL )
-    return 0;
+    return -1;
   
   if( dvd->dev == NULL ) {
     /* No block access, so no ISO... */