refactor(synthetic): use RootProcessor as root node
This commit is contained in:
parent
95d733b2b4
commit
469ffe5075
|
@ -266,13 +266,11 @@ bool Synthetic::HasStreamCallback(const Stream &stream) const {
|
|||
}
|
||||
|
||||
void Synthetic::StartVideoStreaming() {
|
||||
auto processor_root = static_cast<RootProcessor*>(&(*processor_));
|
||||
processor_root->StartVideoStreaming();
|
||||
processor_->StartVideoStreaming();
|
||||
}
|
||||
|
||||
void Synthetic::StopVideoStreaming() {
|
||||
auto processor_root = static_cast<RootProcessor*>(&(*processor_));
|
||||
processor_root->StopVideoStreaming();
|
||||
processor_->StopVideoStreaming();
|
||||
}
|
||||
|
||||
void Synthetic::WaitForStreams() {
|
||||
|
|
|
@ -29,6 +29,7 @@ MYNTEYE_BEGIN_NAMESPACE
|
|||
class API;
|
||||
class Plugin;
|
||||
class Processor;
|
||||
class RootProcessor;
|
||||
|
||||
struct Object;
|
||||
|
||||
|
@ -136,7 +137,7 @@ class Synthetic {
|
|||
|
||||
API *api_;
|
||||
|
||||
std::shared_ptr<Processor> processor_;
|
||||
std::shared_ptr<RootProcessor> processor_;
|
||||
|
||||
std::shared_ptr<Plugin> plugin_;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user