Commit 7c743650 authored by Richard Hulme's avatar Richard Hulme Committed by Jean-Baptiste Kempf

Initialize dvd_reader_t struct in DVDOpenImageFile

This 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/3af3489Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 563c79a6
......@@ -246,6 +246,7 @@ static dvd_reader_t *DVDOpenImageFile( const char *location, int have_css )
dvdinput_close(dev);
return NULL;
}
memset( dvd, 0, sizeof( dvd_reader_t ) );
dvd->isImageFile = 1;
dvd->dev = dev;
dvd->path_root = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment