Skip to content

Commit

Permalink
apply settings back to obs after requesting them for FE
Browse files Browse the repository at this point in the history
  • Loading branch information
summeroff committed Dec 23, 2023
1 parent 2f1e5bb commit 3202da6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions obs-studio-server/source/osn-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ void osn::Source::GetProperties(void *data, const int64_t id, const std::vector<
PRETTY_ERROR_RETURN(ErrorCode::InvalidReference, "Source reference is not valid.");
}

bool updateSource = false;
rval.push_back(ipc::value((uint64_t)ErrorCode::Ok));

obs_properties_t *prp = obs_source_properties(src);
Expand All @@ -265,10 +264,8 @@ void osn::Source::GetProperties(void *data, const int64_t id, const std::vector<

obs_properties_destroy(prp);

if (updateSource) {
obs_source_update(src, settings);
MemoryManager::GetInstance().updateSourceCache(src);
}
obs_source_update(src, settings);

obs_data_release(settings);
AUTO_DEBUG;
}
Expand Down

0 comments on commit 3202da6

Please sign in to comment.