Skip to content

Commit

Permalink
Image interval only affects images
Browse files Browse the repository at this point in the history
  • Loading branch information
BazzaCuda committed Apr 23, 2024
1 parent d2f3d53 commit b5eb821
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mediaPlayer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,15 @@ procedure TMediaPlayer.onStateChange(cSender: TObject; eState: TMPVPlayerState);
begin
FPlaying := eState = mpsPlay;

// case FPausePlay AND NOT UI.autoCentre of TRUE: EXIT; end;
// case FPausePlay AND NOT UI.autoCentre of TRUE: EXIT; end; // What ???
case FImagePaused AND (FMediaType = mtImage) of TRUE: EXIT; end;

case eState of
mpsPlay: postMessage(GV.appWnd, WM_ADJUST_ASPECT_RATIO, 0, 0);
mpsEnd {, mpsStop}: case FDontPlayNext of FALSE: begin CU.delay(trunc(FImageDisplayDurationSS) * 1000); playNext; end;end;
mpsEnd {, mpsStop}: case FDontPlayNext of FALSE: begin
case FMediaType = mtImage of TRUE: CU.delay(trunc(FImageDisplayDurationSS) * 1000); end;
playNext;
end;end;
end;
end;

Expand Down

0 comments on commit b5eb821

Please sign in to comment.