+ for (unsigned i = 0; i < MAX_STREAMS; ++i) {
+ global_metrics.add("received_frames", {{ "stream", to_string(i) }}, &metric_received_frames[i]);
+ }
+ global_metrics.add("received_frame_size_bytes", &metric_received_frame_size_bytes);
+
+ if (global_flags.stream_source.empty() || global_flags.stream_source == "/dev/null") {
+ // Save the user from some repetitive messages.
+ return;
+ }
+