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:
jp9000
2016-02-04 10:58:26 -08:00
parent a071c03470
commit 74c78c1f13

View File

@@ -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)