From 8b23dba0e50f6afbdba4ae0de46f56e6f0fde77c Mon Sep 17 00:00:00 2001 From: philipel Date: Thu, 21 Jun 2018 11:16:30 +0200 Subject: [PATCH] Add RTPVideoHeader const accessor. Preparation CL to remove RTPTypeHeader. Follow up to this CL (https://webrtc-review.googlesource.com/c/src/+/84423). Bug: none Change-Id: I40516c1791c1ead45e082f554f2f5fcda529e7d6 Reviewed-on: https://webrtc-review.googlesource.com/84588 Reviewed-by: Stefan Holmer Commit-Queue: Philip Eliasson Cr-Commit-Position: refs/heads/master@{#23698} --- modules/include/module_common_types.h | 1 + 1 file changed, 1 insertion(+) 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;