From 49516407aef334c129f4a10dd79be9dc7aa052b3 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sun, 18 Feb 2024 14:58:13 -0500 Subject: [PATCH] 2024-02-18 Fred Gleason * Fixed a regression in rdairplay(1) that caused invalid PAD JSON to be emitted when processing a Chain event. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ lib/rdlogplay.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8ec6140b..c4a4c6be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24598,3 +24598,6 @@ Layer II to fail. 2024-01-13 Fred Gleason * Added an extended event PAD output at TCP port 34290. +2024-02-18 Fred Gleason + * Fixed a regression in rdairplay(1) that caused invalid PAD JSON + to be emitted when processing a Chain event. diff --git a/lib/rdlogplay.cpp b/lib/rdlogplay.cpp index 2de42c6f..c2d8e00e 100644 --- a/lib/rdlogplay.cpp +++ b/lib/rdlogplay.cpp @@ -3224,7 +3224,7 @@ void RDLogPlay::SendNowNext() play_pad_socket[i]-> write(GetPadJson("next",logline[1], next_datetime,nextLine(),8,(i==0)|| - ((1+nextLine())==lineCount())||(nextLine()<0)).toUtf8()); + ((1+nextLine())>=lineCount())||(nextLine()<0)).toUtf8()); if(nextLine()>=0) { //