fix(api): plugin
This commit is contained in:
parent
5a6eabcc5f
commit
6b561733c0
|
@ -284,6 +284,7 @@ api::StreamData Processor::GetStreamData(const Stream &stream) {
|
||||||
auto output = Object::Cast<ObjMat>(out);
|
auto output = Object::Cast<ObjMat>(out);
|
||||||
if (output != nullptr) {
|
if (output != nullptr) {
|
||||||
if (!is_enable_cd &&
|
if (!is_enable_cd &&
|
||||||
|
output->data &&
|
||||||
last_frame_id_cd == output->data->frame_id) {
|
last_frame_id_cd == output->data->frame_id) {
|
||||||
// cut the duplicate frame.
|
// cut the duplicate frame.
|
||||||
return {};
|
return {};
|
||||||
|
@ -305,6 +306,7 @@ api::StreamData Processor::GetStreamData(const Stream &stream) {
|
||||||
if (it.stream == stream) {
|
if (it.stream == stream) {
|
||||||
if (num == 1) {
|
if (num == 1) {
|
||||||
if (!is_enable_cd &&
|
if (!is_enable_cd &&
|
||||||
|
output->first_data &&
|
||||||
last_frame_id_cd == output->first_data->frame_id) {
|
last_frame_id_cd == output->first_data->frame_id) {
|
||||||
// cut the duplicate frame.
|
// cut the duplicate frame.
|
||||||
return {};
|
return {};
|
||||||
|
@ -314,6 +316,7 @@ api::StreamData Processor::GetStreamData(const Stream &stream) {
|
||||||
} else {
|
} else {
|
||||||
// last_frame_id_cd = output->second_data->frame_id;
|
// last_frame_id_cd = output->second_data->frame_id;
|
||||||
if (!is_enable_cd &&
|
if (!is_enable_cd &&
|
||||||
|
output->second_data &&
|
||||||
last_frame_id_cd_vice == output->second_data->frame_id) {
|
last_frame_id_cd_vice == output->second_data->frame_id) {
|
||||||
// cut the duplicate frame.
|
// cut the duplicate frame.
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user