changeset 886:0d6814238109

fc-imy2pwt: stop reading input on END:IMELODY
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 03 Apr 2022 04:00:09 +0000
parents 16e259bff02b
children 3e398f9c31a0
files ringtools/imy/firstpass.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ringtools/imy/firstpass.c	Sun Apr 03 03:55:02 2022 +0000
+++ b/ringtools/imy/firstpass.c	Sun Apr 03 04:00:09 2022 +0000
@@ -107,7 +107,9 @@
 		} else if (!strncasecmp(linebuf, "BEAT:", 5)) {
 			process_beat_line(linebuf + 5);
 			prev_line_is_melody = 0;
-		} else
+		} else if (!strncasecmp(linebuf, "END:IMELODY", 11))
+			break;
+		else
 			prev_line_is_melody = 0;
 	}
 	fclose(inf);