mirror of https://github.com/mpv-player/mpv
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:
parent
e078b7a14e
commit
d7d3f53317
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue