From a828758cbda91c1272824e50eaaf20ba52c88944 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Mon, 10 Jun 2024 16:26:56 -0400 Subject: [PATCH] 2024-06-10 Fred Gleason * Fixed a regression in the 'Edit Audio' dialog in rdlibrary(1) that caused play-out to fail to stop at the end marker when using the 'Play To' feature. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ lib/rdmarkerplayer.cpp | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3b12b3e0..7501999c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24802,3 +24802,7 @@ 2024-06-10 Fred Gleason * Reverted the changes made to the 'RDHPIPlayStream::play()' method that were made on 2024-05-27. +2024-06-10 Fred Gleason + * Fixed a regression in the 'Edit Audio' dialog in rdlibrary(1) that + caused play-out to fail to stop at the end marker when using the + 'Play To' feature. diff --git a/lib/rdmarkerplayer.cpp b/lib/rdmarkerplayer.cpp index f97d81fd..25c8cdd8 100644 --- a/lib/rdmarkerplayer.cpp +++ b/lib/rdmarkerplayer.cpp @@ -578,6 +578,11 @@ void RDMarkerPlayer::caePositionData(unsigned serial,unsigned msec) d_position_edit-> setText(RDGetTimeLength(msec-d_pointers[RDMarkerHandle::CutStart], true,true)); + if((d_active_play_button==d_play_to_button)&& + (msec>=(unsigned)d_pointers[d_selected_markers[1]])) { + buttonStopData(); + setCursorPosition(d_loop_start_msec); + } d_cursor_position=msec; emit cursorPositionChanged(msec); }