提交 74c78c1f 编写于 作者: J jp9000

obs-ffmpeg: Fix media source starting even if not active

If the media source is set to restart on activation, it also shuts down
when not active.  However, it would *always* start regardless of
active/inactive when the source is first created.  It shouldn't do that,
it should start up only when it becomes active.
上级 a071c034
......@@ -578,7 +578,8 @@ static void ffmpeg_source_update(void *data, obs_data_t *settings)
}
dump_source_info(s, input, input_format, is_advanced);
ffmpeg_source_start(s);
if (!s->restart_on_activate || obs_source_active(s->source))
ffmpeg_source_start(s);
}
static const char *ffmpeg_source_getname(void *unused)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册