Skip to content

Commit

Permalink
image-source: Fix slideshow stopping on last file in random mode
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod authored and RytoEX committed Jan 16, 2025
1 parent 223015b commit 41a38f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/image-source/obs-slideshow-mk2.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ static void ss_video_tick(void *data, float seconds)
if (ssd->elapsed > ssd->slide_time) {
ssd->elapsed -= ssd->slide_time;

if (!ssd->loop && ssd->slides.cur.slide_idx == ssd->files.num - 1) {
if (!ssd->randomize && !ssd->loop && ssd->slides.cur.slide_idx == ssd->files.num - 1) {
if (ssd->hide)
do_transition(ss, true);
else
Expand Down

0 comments on commit 41a38f7

Please sign in to comment.