corrected some viewer behavior when pressing play after the end of a sequence

This commit is contained in:
itsmattkc
2019-02-26 11:19:23 -08:00
parent 1ae3b877a1
commit a24b90c99e
3 changed files with 15 additions and 5 deletions
+6 -5
View File
@@ -390,24 +390,25 @@ void Viewer::play(bool in_to_out) {
uncue_recording();
}
if (playback_speed == 0) {
playback_speed = 1;
}
bool seek_to_in = (seq->using_workarea && (olive::CurrentConfig.loop || playing_in_to_out));
if (!is_recording_cued()
&& playback_speed > 0
&& playback_speed >= 0
&& (playing_in_to_out
|| seq->playhead >= sequence_end_frame
|| (seek_to_in && seq->playhead >= seq->workarea_out))) {
seek(seek_to_in ? seq->workarea_in : 0);
}
if (playback_speed == 0) {
playback_speed = 1;
}
reset_all_audio();
if (is_recording_cued() && !start_recording()) {
qCritical() << "Failed to record audio";
return;
}
playhead_start = seq->playhead;
playing = true;
just_played_ = true;