libobs: Fix scene filter duplication

Scene filters were not being copied when a scene was duplicated with
obs_scene_duplicate.

Closes jp9000/obs-studio#1104
This commit is contained in:
SuslikV 2017-12-04 22:03:08 +02:00 committed by jp9000
parent f81adbd856
commit c706742097
2 changed files with 2 additions and 1 deletions

View file

@ -1095,6 +1095,8 @@ obs_scene_t *obs_scene_duplicate(obs_scene_t *scene, const char *name,
new_scene = make_private ?
obs_scene_create_private(name) : obs_scene_create(name);
obs_source_copy_filters(new_scene->source, scene->source);
obs_data_apply(new_scene->source->private_settings,
scene->source->private_settings);

View file

@ -452,7 +452,6 @@ obs_source_t *obs_source_duplicate(obs_source_t *source,
create_private ? OBS_SCENE_DUP_PRIVATE_COPY :
OBS_SCENE_DUP_COPY);
obs_source_t *new_source = obs_scene_get_source(new_scene);
duplicate_filters(new_source, source, create_private);
return new_source;
}