Skip to content

Commit

Permalink
[xbmc][dvdnav] detection of dvd name
Browse files Browse the repository at this point in the history
  • Loading branch information
Voyager1 committed Feb 14, 2016
1 parent 8305696 commit d265f78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vm/vm.c
Expand Up @@ -409,6 +409,13 @@ int vm_reset(vm_t *vm, const char *dvdroot,
if(dvd_read_name(vm->dvd_name, vm->dvd_serial, dvdroot) != 1) {
fprintf(MSG_OUT, "libdvdnav: vm: dvd_read_name failed\n");
}
#ifdef _XBMC
if (DVDUDFVolumeInfo(vm->dvd, vm->dvd_name, sizeof(vm->dvd_name), NULL, 0))
if (DVDISOVolumeInfo(vm->dvd, vm->dvd_name, sizeof(vm->dvd_name), NULL, 0))
strcpy(vm->dvd_name, "");

fprintf(MSG_OUT, "libdvdnav: vm: DVD Title: %s\n", vm->dvd_name);
#endif
}
if (vm->vmgi) {
int i, mask;
Expand Down

0 comments on commit d265f78

Please sign in to comment.