correct handling of disc status and blank discs in read volset

This commit is contained in:
Vreixo Formoso Lopes
2007-09-23 16:23:55 +00:00
parent db6fc81ea8
commit b765efef60
3 changed files with 29 additions and 22 deletions

View File

@ -117,17 +117,6 @@ int main(int argc, char **argv)
printf("Can't read volset\n");
goto exit_cleanup;
}
printf("Volset read\n");
fflush(stdout);
if (!volset) {
// TODO this piece of code should be inside libisoburn
struct iso_volume *volume;
root = iso_tree_new_root();
volume = iso_volume_new_with_root("NEW DISC", "", "LIBISOBURN", root);
volset = iso_volset_new( volume, "VOLSETID" );
}
root = iso_volume_get_root(iso_volset_get_volume(volset, 0));
/* add a new dir */