mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-24 04:15:11 +00:00
sources/mirror: Clamp minimum size to 1x1
This works around an issue in our code with asynchronous or delayed sources.
This commit is contained in:
parent
188e58bbda
commit
b8ff72d6c8
1 changed files with 2 additions and 2 deletions
|
@ -85,12 +85,12 @@ mirror_instance::~mirror_instance()
|
||||||
|
|
||||||
uint32_t mirror_instance::get_width()
|
uint32_t mirror_instance::get_width()
|
||||||
{
|
{
|
||||||
return _source_size.first;
|
return _source_size.first ? _source_size.first : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t mirror_instance::get_height()
|
uint32_t mirror_instance::get_height()
|
||||||
{
|
{
|
||||||
return _source_size.second;
|
return _source_size.second ? _source_size.second : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mirror_instance::load(obs_data_t* data)
|
void mirror_instance::load(obs_data_t* data)
|
||||||
|
|
Loading…
Reference in a new issue