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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user