image-source: Transition when restarting slideshow

Fixes an issue where it would instantly set the image rather than
transition to the first from its current value
master
jp9000 2020-08-17 03:11:50 -07:00
parent 1849798cb4
commit 37767b6746
1 changed files with 2 additions and 4 deletions

View File

@ -509,12 +509,10 @@ static void ss_restart(void *data)
ss->elapsed = 0.0f;
ss->cur_item = 0;
obs_transition_set(ss->transition,
ss->files.array[ss->cur_item].source);
ss->stop = false;
ss->paused = false;
do_transition(ss, false);
set_media_state(ss, OBS_MEDIA_STATE_PLAYING);
}