mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
Revert "Make TransformableVideoFrameInterface::GetMetadata pure virtual."
This reverts commit 576ad5d510
.
Reason for revert: Causes compile error in Chrome.
Original change's description:
> Make TransformableVideoFrameInterface::GetMetadata pure virtual.
>
> GetMetadata() has been implemented downstream and can be made pure
> virtual.
>
> Bug: chromium:1069295
> Change-Id: I62a3be6106552d2d82d8c413c6f523d31626b0d8
> Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175001
> Commit-Queue: Marina Ciocea <marinaciocea@webrtc.org>
> Reviewed-by: Harald Alvestrand <hta@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#31281}
TBR=hta@webrtc.org,marinaciocea@webrtc.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: chromium:1069295
Change-Id: I5915270d5b8dab9fc30a07f22fddedb29beca01a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175620
Reviewed-by: Guido Urdaneta <guidou@webrtc.org>
Commit-Queue: Guido Urdaneta <guidou@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31304}
This commit is contained in:
parent
c50976ace9
commit
3e9068a6b4
2 changed files with 9 additions and 1 deletions
|
@ -50,7 +50,14 @@ class TransformableVideoFrameInterface : public TransformableFrameInterface {
|
|||
// webrtc::RtpDescriptorAuthentication is exposed in api/.
|
||||
virtual std::vector<uint8_t> GetAdditionalData() const = 0;
|
||||
|
||||
virtual const VideoFrameMetadata& GetMetadata() const = 0;
|
||||
// TODO(bugs.webrtc.org/11380) make pure virtual after implementating it
|
||||
// downstream.
|
||||
virtual const VideoFrameMetadata& GetMetadata() const { return metadata_; }
|
||||
|
||||
private:
|
||||
// TODO(bugs.webrtc.org/11380) remove from interface once GetRtpVideoHeader is
|
||||
// pure virtual.
|
||||
VideoFrameMetadata metadata_;
|
||||
};
|
||||
|
||||
// Extends the TransformableFrameInterface to expose audio-specific information.
|
||||
|
|
|
@ -27,6 +27,7 @@ struct RTPVideoHeader;
|
|||
class VideoFrameMetadata {
|
||||
public:
|
||||
explicit VideoFrameMetadata(const RTPVideoHeader& header);
|
||||
VideoFrameMetadata() = default;
|
||||
VideoFrameMetadata(const VideoFrameMetadata&) = default;
|
||||
VideoFrameMetadata& operator=(const VideoFrameMetadata&) = default;
|
||||
|
||||
|
|
Loading…
Reference in a new issue