From 58dcbc9833b821fc5b701ab06f96949f95709a57 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Fri, 21 Apr 2023 13:10:10 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 526117263 --- mediapipe/framework/api2/port.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mediapipe/framework/api2/port.h b/mediapipe/framework/api2/port.h index f6abe75ed..18a786075 100644 --- a/mediapipe/framework/api2/port.h +++ b/mediapipe/framework/api2/port.h @@ -467,6 +467,11 @@ class SideFallbackT : public Base { // CalculatorContext (e.g. kOut(cc)), and provides a type-safe interface to // OutputStreamShard. Like that class, this class will not be usually named in // calculator code, but used as a temporary object (e.g. kOut(cc).Send(...)). +// +// If not connected (!IsConnected()) SetNextTimestampBound is safe to call and +// does nothing. +// All the sub-classes that define Send should implement it to be safe to to +// call if not connected and do nothing in such case. class OutputShardAccessBase { public: OutputShardAccessBase(const CalculatorContext& cc, OutputStreamShard* output)