diff --git a/modules/include/module_common_types.h b/modules/include/module_common_types.h index b5b023d6fb..c22e9950ad 100644 --- a/modules/include/module_common_types.h +++ b/modules/include/module_common_types.h @@ -72,6 +72,7 @@ struct WebRtcRTPHeader { FrameType frameType; // TODO(philipel): Remove with RTPTypeHeader. RTPVideoHeader& video_header() { return type.Video; } + const RTPVideoHeader& video_header() const { return type.Video; } RTPTypeHeader type; // NTP time of the capture time in local timebase in milliseconds. int64_t ntp_time_ms;