From b4968b46800ca1ee6064feea29754d1eaa04511b Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 6 Jul 2015 22:23:28 +1200 Subject: Actual track filename is output rather than "Track n" --- cue-bin-split.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cue-bin-split.c b/cue-bin-split.c index ff384f2..12d8e3a 100644 --- a/cue-bin-split.c +++ b/cue-bin-split.c @@ -128,8 +128,6 @@ int main(int argc, char **argv) perror("fopen"); return EXIT_FAILURE; } - printf("Opened input file '%s'\n", in_fname); - index = 0; items = get_stamp(&mm, &ss, &ff); /* FIXME doesn't check return value */ @@ -147,7 +145,6 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - /* Open output file */ if ((fout = fopen(out_fname, "w")) == NULL) { @@ -157,7 +154,6 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - /* EOF means this is the last track; run it to end of input file */ if (items == EOF) { @@ -171,7 +167,7 @@ int main(int argc, char **argv) } finish_sec = (double)mm*60 + (double)ss + ((double)ff)/75; } - fprintf(stderr, "Track %d starts %f s, finishes %f s\n", index, start_sec, finish_sec); + printf("%s starts %f s, finishes %f s\n", out_fname, start_sec, finish_sec); start_sample = start_sec * rate * channels; finish_sample = finish_sec * rate * channels; -- cgit v1.1