mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 21:13:04 +02:00
obs-ffmpeg: Don't mark to destroy media unless valid
Closes jp9000/obs-studio#1021
This commit is contained in:
parent
dcd3e627c2
commit
1ef4de7ce3
@ -232,7 +232,7 @@ 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)
|
||||
if (s->close_when_inactive && s->media_valid)
|
||||
s->destroy_media = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user