Remove rtc::Optional alias and api:optional target
Update left-overs where old target still was used. Bug: webrtc:9078 Change-Id: I2162c928091fc4ff1dea33a3f03adbe47207d206 Reviewed-on: https://webrtc-review.googlesource.com/84740 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23913}
This commit is contained in:
committed by
Commit Bot
parent
9ea085a208
commit
6f5b0f920a
@ -34,12 +34,12 @@ TimeLimitedNetEqInput::TimeLimitedNetEqInput(std::unique_ptr<NetEqInput> input,
|
||||
start_time_ms_(input_->NextEventTime()),
|
||||
duration_ms_(duration_ms) {}
|
||||
|
||||
rtc::Optional<int64_t> TimeLimitedNetEqInput::NextPacketTime() const {
|
||||
return ended_ ? rtc::Optional<int64_t>() : input_->NextPacketTime();
|
||||
absl::optional<int64_t> TimeLimitedNetEqInput::NextPacketTime() const {
|
||||
return ended_ ? absl::nullopt : input_->NextPacketTime();
|
||||
}
|
||||
|
||||
rtc::Optional<int64_t> TimeLimitedNetEqInput::NextOutputEventTime() const {
|
||||
return ended_ ? rtc::Optional<int64_t>() : input_->NextOutputEventTime();
|
||||
absl::optional<int64_t> TimeLimitedNetEqInput::NextOutputEventTime() const {
|
||||
return ended_ ? absl::nullopt : input_->NextOutputEventTime();
|
||||
}
|
||||
|
||||
std::unique_ptr<NetEqInput::PacketData> TimeLimitedNetEqInput::PopPacket() {
|
||||
@ -62,8 +62,8 @@ bool TimeLimitedNetEqInput::ended() const {
|
||||
return ended_ || input_->ended();
|
||||
}
|
||||
|
||||
rtc::Optional<RTPHeader> TimeLimitedNetEqInput::NextHeader() const {
|
||||
return ended_ ? rtc::Optional<RTPHeader>() : input_->NextHeader();
|
||||
absl::optional<RTPHeader> TimeLimitedNetEqInput::NextHeader() const {
|
||||
return ended_ ? absl::nullopt : input_->NextHeader();
|
||||
}
|
||||
|
||||
void TimeLimitedNetEqInput::MaybeSetEnded() {
|
||||
|
||||
Reference in New Issue
Block a user