refactor(synthetic): use RootProcessor as root node

This commit is contained in:
TinyOh
2019-03-02 10:08:45 +08:00
parent 95d733b2b4
commit 469ffe5075
2 changed files with 4 additions and 5 deletions

View File

@@ -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() {