mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
sources/mirror: Retrieve source size on acquire
This commit is contained in:
parent
b1476a2f9a
commit
8fc9b5cf1f
1 changed files with 4 additions and 2 deletions
|
@ -175,6 +175,8 @@ try {
|
||||||
// Everything went well, store.
|
// Everything went well, store.
|
||||||
_source_child = std::make_shared<obs::tools::child_source>(_self, source);
|
_source_child = std::make_shared<obs::tools::child_source>(_self, source);
|
||||||
_source = source;
|
_source = source;
|
||||||
|
_source_size.first = obs_source_get_width(_source.get());
|
||||||
|
_source_size.second = obs_source_get_height(_source.get());
|
||||||
|
|
||||||
// Listen to the rename event to update our own settings.
|
// Listen to the rename event to update our own settings.
|
||||||
_signal_rename = std::make_shared<obs::source_signal_handler>("rename", _source);
|
_signal_rename = std::make_shared<obs::source_signal_handler>("rename", _source);
|
||||||
|
|
Loading…
Reference in a new issue