Add explicit copy constructors to RTPHeader and RTPHeaderExtension
Explicit copy-constructors are required by chromium. (No copy constructors were used until now, but a different CL requires them.) BUG=None TBR=stefan@webrtc.org Review-Url: https://codereview.webrtc.org/3006343002 Cr-Commit-Position: refs/heads/master@{#19777}
This commit is contained in:
parent
4bb3b9c6cb
commit
98b1b7d59e
@ -57,6 +57,12 @@ RTPHeaderExtension::RTPHeaderExtension()
|
||||
videoContentType(VideoContentType::UNSPECIFIED),
|
||||
has_video_timing(false) {}
|
||||
|
||||
RTPHeaderExtension::RTPHeaderExtension(const RTPHeaderExtension& other) =
|
||||
default;
|
||||
|
||||
RTPHeaderExtension& RTPHeaderExtension::operator=(
|
||||
const RTPHeaderExtension& other) = default;
|
||||
|
||||
RTPHeader::RTPHeader()
|
||||
: markerBit(false),
|
||||
payloadType(0),
|
||||
@ -70,6 +76,10 @@ RTPHeader::RTPHeader()
|
||||
payload_type_frequency(0),
|
||||
extension() {}
|
||||
|
||||
RTPHeader::RTPHeader(const RTPHeader& other) = default;
|
||||
|
||||
RTPHeader& RTPHeader::operator=(const RTPHeader& other) = default;
|
||||
|
||||
VideoCodec::VideoCodec()
|
||||
: codecType(kVideoCodecUnknown),
|
||||
plName(),
|
||||
|
||||
@ -792,6 +792,8 @@ typedef StringRtpHeaderExtension Mid;
|
||||
|
||||
struct RTPHeaderExtension {
|
||||
RTPHeaderExtension();
|
||||
RTPHeaderExtension(const RTPHeaderExtension& other);
|
||||
RTPHeaderExtension& operator=(const RTPHeaderExtension& other);
|
||||
|
||||
bool hasTransmissionTimeOffset;
|
||||
int32_t transmissionTimeOffset;
|
||||
@ -835,6 +837,8 @@ struct RTPHeaderExtension {
|
||||
|
||||
struct RTPHeader {
|
||||
RTPHeader();
|
||||
RTPHeader(const RTPHeader& other);
|
||||
RTPHeader& operator=(const RTPHeader& other);
|
||||
|
||||
bool markerBit;
|
||||
uint8_t payloadType;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user