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:
Meng Li 2020-12-11 16:07:21 +08:00 committed by Jim
parent 7029304b32
commit 96c7790d80

View file

@ -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);