changeset 17786:f0f54034c7e9

fix another sizeof(dvd_input_t) bug (must be struct dvd_input_s instead)
author reimar
date Thu, 09 Mar 2006 17:39:34 +0000
parents adc0e54034f0
children 6eb3a513abb9
files libmpdvdkit2/dvd_input.c libmpdvdkit2/libdvdread_changes.diff
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdvdkit2/dvd_input.c	Wed Mar 08 22:23:21 2006 +0000
+++ b/libmpdvdkit2/dvd_input.c	Thu Mar 09 17:39:34 2006 +0000
@@ -158,7 +158,7 @@
   dvd_input_t dev;
   
   /* Allocate the library structure */
-  dev = (dvd_input_t) malloc(sizeof(dvd_input_t));
+  dev = (dvd_input_t) malloc(sizeof(struct dvd_input_s));
   if(dev == NULL) {
     fprintf(stderr, "libdvdread: Could not allocate memory.\n");
     return NULL;
--- a/libmpdvdkit2/libdvdread_changes.diff	Wed Mar 08 22:23:21 2006 +0000
+++ b/libmpdvdkit2/libdvdread_changes.diff	Thu Mar 09 17:39:34 2006 +0000
@@ -91,6 +91,15 @@
    if(dev == NULL) {
      fprintf(stderr, "libdvdread: Could not allocate memory.\n");
      return NULL;
+@@ -158,7 +158,7 @@
+   dvd_input_t dev;
+   
+   /* Allocate the library structure */
+-  dev = (dvd_input_t) malloc(sizeof(dvd_input_t));
++  dev = (dvd_input_t) malloc(sizeof(struct dvd_input_s));
+   if(dev == NULL) {
+     fprintf(stderr, "libdvdread: Could not allocate memory.\n");
+     return NULL;
 @@ -320,8 +320,10 @@
      fprintf(stderr, "DVDCSS_METHOD %s\n", psz_method);
      fprintf(stderr, "DVDCSS_VERBOSE %s\n", psz_verbose);