Merge pull request #2700 from Bennik2000/mantis_0001603

obs-ffmpeg: Fix media source not closing file when inactive
master
Richard Stanway 2020-04-18 21:24:25 +02:00 committed by GitHub
commit 4fda6cf846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

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