Merge pull request #2700 from Bennik2000/mantis_0001603
obs-ffmpeg: Fix media source not closing file when inactivemaster
commit
4fda6cf846
|
@ -258,9 +258,10 @@ static void media_stopped(void *opaque)
|
|||
struct ffmpeg_source *s = opaque;
|
||||
if (s->is_clear_on_media_end) {
|
||||
obs_source_output_video(s->source, NULL);
|
||||
}
|
||||
|
||||
if (s->close_when_inactive && s->media_valid)
|
||||
s->destroy_media = true;
|
||||
}
|
||||
|
||||
set_media_state(s, OBS_MEDIA_STATE_ENDED);
|
||||
obs_source_media_ended(s->source);
|
||||
|
|
Loading…
Reference in New Issue