Add copy and move operations to SdpVideoFormat.
Needed to be able to add an SdpVideoFormat member to VideoEncoderConfig or other move-only classes. Bug: webrtc:8830 Change-Id: Ie15dbfec616b059e1492d2c17ebd210f0edbe00f Reviewed-on: https://webrtc-review.googlesource.com/64983 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22642}
This commit is contained in:
parent
1e48e8095c
commit
c5d4461f87
@ -20,6 +20,8 @@ SdpVideoFormat::SdpVideoFormat(const std::string& name,
|
||||
|
||||
SdpVideoFormat::SdpVideoFormat(const SdpVideoFormat&) = default;
|
||||
SdpVideoFormat::SdpVideoFormat(SdpVideoFormat&&) = default;
|
||||
SdpVideoFormat& SdpVideoFormat::operator=(const SdpVideoFormat&) = default;
|
||||
SdpVideoFormat& SdpVideoFormat::operator=(SdpVideoFormat&&) = default;
|
||||
|
||||
SdpVideoFormat::~SdpVideoFormat() = default;
|
||||
|
||||
|
||||
@ -25,6 +25,8 @@ struct SdpVideoFormat {
|
||||
SdpVideoFormat(const std::string& name, const Parameters& parameters);
|
||||
SdpVideoFormat(const SdpVideoFormat&);
|
||||
SdpVideoFormat(SdpVideoFormat&&);
|
||||
SdpVideoFormat& operator=(const SdpVideoFormat&);
|
||||
SdpVideoFormat& operator=(SdpVideoFormat&&);
|
||||
|
||||
~SdpVideoFormat();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user