BugFix DeviceSource: shared access to stream vis Device::manager

Creation of multiple DeviceSources is possible (also for multiple sessions and transitions) through centralized management of gst streams. Creation and deletion of a shared stream accross DeviceSources is handled.
This commit is contained in:
Bruno Herbelin
2022-01-20 01:28:30 +01:00
parent 625e2305ba
commit b82c83de5e
6 changed files with 208 additions and 139 deletions

View File

@@ -374,7 +374,7 @@ float Stream::aspectRatio() const
void Stream::enable(bool on)
{
if ( !opened_ || pipeline_ == nullptr)
if ( !opened_ || pipeline_ == nullptr || !textureinitialized_)
return;
if ( enabled_ != on ) {