# HG changeset patch # User reimar # Date 1141925974 0 # Node ID f0f54034c7e939ffdbaf67950d073c93c302c5fe # Parent adc0e54034f072507a78765c01c4f583e9b18591 fix another sizeof(dvd_input_t) bug (must be struct dvd_input_s instead) diff -r adc0e54034f0 -r f0f54034c7e9 libmpdvdkit2/dvd_input.c --- 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; diff -r adc0e54034f0 -r f0f54034c7e9 libmpdvdkit2/libdvdread_changes.diff --- 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);