mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
obs-ffmpeg: Always fully restart remote media sources
When a media source is set to use a URL, always fully shut down the media when stopped. This ensures that the media will do a full reconnect after having been stopped.
This commit is contained in:
parent
7029304b32
commit
96c7790d80
|
@ -284,7 +284,7 @@ static void media_stopped(void *opaque)
|
|||
obs_source_output_video(s->source, NULL);
|
||||
}
|
||||
|
||||
if (s->close_when_inactive && s->media_valid)
|
||||
if ((s->close_when_inactive || !s->is_local_file) && s->media_valid)
|
||||
s->destroy_media = true;
|
||||
|
||||
set_media_state(s, OBS_MEDIA_STATE_ENDED);
|
||||
|
|
Loading…
Reference in a new issue