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 <stefan@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23698}
This commit is contained in:
philipel 2018-06-21 11:16:30 +02:00 committed by Commit Bot
parent 196100efa6
commit 8b23dba0e5

View file

@ -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;