obs-source-factory: Fix support for transitions

Transitions always require audio and video rendering.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-03-28 18:37:20 +01:00
parent 6ae9904e13
commit 2e250ad826

View file

@ -144,13 +144,9 @@ namespace obs {
set_resolution_enabled(false); set_resolution_enabled(false);
_info.transition_start = _transition_start; _info.transition_start = _transition_start;
_info.transition_stop = _transition_stop; _info.transition_stop = _transition_stop;
if ((_info.output_flags & OBS_SOURCE_VIDEO) != 0) { _info.audio_render = _audio_render;
_info.video_tick = _video_tick; _info.video_tick = _video_tick;
_info.video_render = _video_render; _info.video_render = _video_render;
}
if ((_info.output_flags & OBS_SOURCE_AUDIO) != 0) {
_info.audio_render = _audio_render;
}
} else if (_info.type == OBS_SOURCE_TYPE_FILTER) { } else if (_info.type == OBS_SOURCE_TYPE_FILTER) {
switch (_info.output_flags & OBS_SOURCE_ASYNC_VIDEO) { switch (_info.output_flags & OBS_SOURCE_ASYNC_VIDEO) {
case OBS_SOURCE_ASYNC_VIDEO: case OBS_SOURCE_ASYNC_VIDEO: