From e9a1b06a311447a63438d9846ddb17bee468679b Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sun, 21 Mar 2021 17:23:22 -0400 Subject: [PATCH] 2021-03-21 Fred Gleason * Fixed a bug in 'RDMarkerView' that caused PlayTo operations to fail if the target marker was within 2 seconds of the start of the cut. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ lib/rdmarkerplayer.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 10339168..dab0fd33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21320,3 +21320,7 @@ 2021-03-21 Fred Gleason * Fixed a bug in 'RDMarkerView' that caused a save prompt to appear when no data had been changed. +2021-03-21 Fred Gleason + * Fixed a bug in 'RDMarkerView' that caused PlayTo operations to + fail if the target marker was within 2 seconds of the start of the + cut. diff --git a/lib/rdmarkerplayer.cpp b/lib/rdmarkerplayer.cpp index c8c59789..e2636735 100644 --- a/lib/rdmarkerplayer.cpp +++ b/lib/rdmarkerplayer.cpp @@ -273,7 +273,7 @@ void RDMarkerPlayer::buttonPlayToData() d_loop_start_length=2000; if(d_loop_start_msec<0) { d_loop_start_msec=0; - d_loop_start_length=d_selected_markers[1]; + d_loop_start_length=d_pointers[d_selected_markers[1]]; } rda->cae()->positionPlay(d_cae_handle,d_loop_start_msec); rda->cae()->play(d_cae_handle,d_loop_start_length,100000,false);