ismindex: Avoid writing ismf files if no base name has been specified

Previously, this could create files named "(null).ismf", if the -ismf
parameter is specified (before an input file name), but without
specifying any base name.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2014-09-05 22:50:24 +03:00
parent 803e82276b
commit fcf597625c
1 changed files with 2 additions and 0 deletions

View File

@ -679,6 +679,8 @@ int main(int argc, char **argv)
} else if (argv[i][0] == '-') { } else if (argv[i][0] == '-') {
return usage(argv[0], 1); return usage(argv[0], 1);
} else { } else {
if (!basename)
ismf = 0;
if (handle_file(&tracks, argv[i], split, ismf, if (handle_file(&tracks, argv[i], split, ismf,
basename, output_prefix)) basename, output_prefix))
return 1; return 1;