Commit 2cfddf9a authored by Petri Hintukainen's avatar Petri Hintukainen

Add libudfread git submodule

parent 2c2fbd9d
[submodule "contrib/libudfread"]
path = contrib/libudfread
url = git://git.videolan.org/libudfread.git
libudfread @ 06c3cb92
Subproject commit 06c3cb9223a3cb5ab048e42ab353958f422a8f57
......@@ -198,21 +198,31 @@ static struct udfread_block_input *_block_input(const char *img)
void *udf_image_open(const char *img_path)
{
udfread *udf = NULL;
udfread *udf = udfread_init();
int result = -1;
if (!udf) {
return NULL;
}
/* app handles file I/O ? */
if (file_open != file_open_default()) {
struct udfread_block_input *bi = _block_input(img_path);
if (bi) {
udf = udfread_open_input(bi);
if (!udf) {
result = udfread_open_input(udf, bi);
if (result < 0) {
bi->close(bi);
}
}
}
if (!udf) {
udf = (void*)udfread_open(img_path);
if (result < 0) {
result = udfread_open(udf, img_path);
}
if (result < 0) {
udfread_close(udf);
return NULL;
}
return (void*)udf;
......
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