]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/libdvdnav-win32.patch
Contrib: update bulk patch for libdvdnav.
[vlc] / extras / contrib / src / Patches / libdvdnav-win32.patch
1 --- libdvdnav.orig/src/remap.c  2007-12-23 13:48:04.000000000 +0100
2 +++ libdvdnav/src/remap.c       2007-12-23 13:49:45.000000000 +0100
3 @@ -203,7 +203,11 @@
4      remap_t *map;
5  
6      /* Build the map filename */
7 -    home = getenv("HOME"); assert(home);
8 +    home = getenv("HOME");
9 +    if (!home) {
10 +    fprintf( MSG_OUT, "libdvdnav: Unable to find map for title '%s' (HOME directory not found)\n", title);
11 +    return NULL;
12 +    }
13      snprintf(fname, sizeof(fname), "%s/.dvdnav/%s.map", home, title);
14  
15      /* Open the map file */