mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 09:39:15 +00:00
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
This commit is contained in:
parent
1849798cb4
commit
37767b6746
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue