mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
obs-ffmpeg: Fix media source playing when inactive
This commit is contained in:
parent
896cd4adb2
commit
69e8b73684
|
@ -495,9 +495,8 @@ static void ffmpeg_source_update(void *data, obs_data_t *settings)
|
|||
/* If media has ended and user enables looping, user expects that it restarts.
|
||||
* Should still check if is_looping was changed, because users may stop them
|
||||
* intentionally, which is why we only check for ENDED and not STOPPED. */
|
||||
if (s->state == OBS_MEDIA_STATE_ENDED && is_looping == true &&
|
||||
if (active && s->state == OBS_MEDIA_STATE_ENDED && is_looping == true &&
|
||||
s->is_looping == false) {
|
||||
active = true;
|
||||
should_restart_media = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue