fix another sizeof(dvd_input_t) bug (must be struct dvd_input_s instead)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17787 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar committed 2006-03-09 17:39:34 +00:00
1 parent e078b7a14e
commit d7d3f53317
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ static dvd_input_t file_open(const char *target)
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;
+9
View File
@@ -87,6 +87,15 @@ diff -Naur dvdread.orig/dvd_input.c dvdread/dvd_input.c
/* Allocate the handle 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;
@@ -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");