VideoStreamEncoder: remove an unneeded and potentially dangerous PostTask.

Bug: None
Change-Id: I9423a78787db09469faa31646e97ac8904a2b32a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/327782
Reviewed-by: Ilya Nikolaevskiy <ilnik@google.com>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Commit-Queue: Markus Handell <handellm@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41224}
This commit is contained in:
Markus Handell 2023-11-23 13:40:23 +01:00 committed by WebRTC LUCI CQ
parent 8dea465dfd
commit 28ea9ba80d

View File

@ -1538,11 +1538,8 @@ void VideoStreamEncoder::OnFrame(Timestamp post_time,
<< incoming_frame.ntp_time_ms() << incoming_frame.ntp_time_ms()
<< " <= " << last_captured_timestamp_ << " <= " << last_captured_timestamp_
<< ") for incoming frame. Dropping."; << ") for incoming frame. Dropping.";
encoder_queue_.PostTask([this, incoming_frame]() {
RTC_DCHECK_RUN_ON(&encoder_queue_);
accumulated_update_rect_.Union(incoming_frame.update_rect()); accumulated_update_rect_.Union(incoming_frame.update_rect());
accumulated_update_rect_is_valid_ &= incoming_frame.has_update_rect(); accumulated_update_rect_is_valid_ &= incoming_frame.has_update_rect();
});
return; return;
} }