提交 1ef4de7c 编写于 作者: C chinasarft 提交者: jp9000

obs-ffmpeg: Don't mark to destroy media unless valid

Closes jp9000/obs-studio#1021
上级 dcd3e627
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册