···123123 rgb[0] = cv::Mat();
124124 rgb[1] = cv::Mat();
125125126126- // Does checking.
126126+ // Don't try to push null frames.
127127+ if (frame == nullptr) {
128128+ return;
129129+ }
130130+131131+ // Does checking if the sink is active.
127132 u_sink_debug_push_frame(&usd, frame);
128133129134 // We unreference the frame here, downstream is either