diff ringtools/imy/firstpass.c @ 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 fd4c9bc7835d
children
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);