0
0
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:
chinasarft 2017-09-07 11:34:06 +08:00 committed by jp9000
parent dcd3e627c2
commit 1ef4de7ce3

View File

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