In video replace non-owning pointer to rtc::TaskQueue with non-owning pointer to TaskQueueBase
rtc::TaskQueue is a simple wrapper over TaskQueueBase and adds no extra features when task queue is used without passing ownership. Reducing usage of the internal rtc::TaskQueue wrapper gives users more flexibility how TaskQueueBase* is stored. Bug: webrtc:14169 Change-Id: If5c8827544c843502c7dfcef775ac558de79ec3a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268189 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37549}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
ee3ad9f2ce
commit
03f8b8a241
@ -83,7 +83,7 @@ FrameBuffer::~FrameBuffer() {
|
||||
|
||||
void FrameBuffer::NextFrame(int64_t max_wait_time_ms,
|
||||
bool keyframe_required,
|
||||
rtc::TaskQueue* callback_queue,
|
||||
TaskQueueBase* callback_queue,
|
||||
NextFrameCallback handler) {
|
||||
RTC_DCHECK_RUN_ON(&callback_checker_);
|
||||
RTC_DCHECK(callback_queue->IsCurrent());
|
||||
@ -107,7 +107,7 @@ void FrameBuffer::StartWaitForNextFrameOnQueue() {
|
||||
RTC_DCHECK(!callback_task_.Running());
|
||||
int64_t wait_ms = FindNextFrame(clock_->CurrentTime());
|
||||
callback_task_ = RepeatingTaskHandle::DelayedStart(
|
||||
callback_queue_->Get(), TimeDelta::Millis(wait_ms),
|
||||
callback_queue_, TimeDelta::Millis(wait_ms),
|
||||
[this] {
|
||||
RTC_DCHECK_RUN_ON(&callback_checker_);
|
||||
// If this task has not been cancelled, we did not get any new frames
|
||||
|
||||
Reference in New Issue
Block a user