Hi,
This is a patch I found in MythTV's copy of libdvdread that seems like
it could/should be upstream too. It ensures that the dvd_reader_t
struct is initialized (e.g. the css_state field is currently undefined
if 'have_css' is false).
The patch is part of a bigger MythTV-specific change by Chris Pinkham:
https://github.com/MythTV/mythtv/commit/3af3489
Richard Hulme
Index: src/dvd_reader.c
===================================================================
--- src/dvd_reader.c (revision 1294)
+++ src/dvd_reader.c (working copy)
@@ -241,6 +241,7 @@
dvdinput_close(dev);
return NULL;
}
+ memset( dvd, 0, sizeof( dvd_reader_t ) );
dvd->isImageFile = 1;
dvd->dev = dev;
dvd->path_root = NULL;
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss