fix(api): add setDuplicate(enable)

This commit is contained in:
TinyOh
2019-03-14 09:51:42 +08:00
parent 0025a555ba
commit 5a6eabcc5f
8 changed files with 30 additions and 5 deletions

View File

@@ -174,6 +174,12 @@ bool Synthetic::Supports(const Stream &stream) const {
return checkControlDateWithStream(stream);
}
void Synthetic::setDuplicate(bool isEnable) {
for (auto it : processors_) {
it->setDupEnable(isEnable);
}
}
void Synthetic::EnableStreamData(
const Stream &stream, stream_switch_callback_t callback,
bool try_tag) {