Commit 2236ff82 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Fix misuses of CrossThreadBind in VideoTrackAdapter

Posted tasks are expected to be invoked once. Hence
the use of CrossThreadBindOnce is appropriated.

BUG=963574
R=haraken@chromium.org, hiroshige@chromium.org

Change-Id: Ifdec982750fcb4179baa1936232e89c2ef74a743
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1646073
Auto-Submit: Antonio Gomes <tonikitoo@igalia.com>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#666541}
parent f45e3a85
......@@ -683,7 +683,7 @@ void VideoTrackAdapter::StartFrameMonitoringOnIO(
<< (kFirstFrameTimeoutInFrameIntervals / source_frame_rate_) << "s";
PostDelayedCrossThreadTask(
*io_task_runner_, FROM_HERE,
CrossThreadBind(
CrossThreadBindOnce(
&VideoTrackAdapter::CheckFramesReceivedOnIO, WrapRefCounted(this),
WTF::Passed(std::move(on_muted_callback)), frame_counter_),
base::TimeDelta::FromSecondsD(kFirstFrameTimeoutInFrameIntervals /
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment