Index: media/capture/video/file_video_capture_device.cc |
diff --git a/media/capture/video/file_video_capture_device.cc b/media/capture/video/file_video_capture_device.cc |
index 9a40c50f4e8f4993d24455f294fbe2390ac1958c..10b3710f53fdf9775cda8682174c3ae5faf2aa84 100644 |
--- a/media/capture/video/file_video_capture_device.cc |
+++ b/media/capture/video/file_video_capture_device.cc |
@@ -332,7 +332,7 @@ void FileVideoCaptureDevice::StopAndDeAllocate() { |
void FileVideoCaptureDevice::OnAllocateAndStart( |
const VideoCaptureParams& params, |
std::unique_ptr<VideoCaptureDevice::Client> client) { |
- DCHECK_EQ(capture_thread_.message_loop(), base::MessageLoop::current()); |
+ DCHECK(capture_thread_.task_runner()->BelongsToCurrentThread()); |
client_ = std::move(client); |
@@ -352,14 +352,14 @@ void FileVideoCaptureDevice::OnAllocateAndStart( |
} |
void FileVideoCaptureDevice::OnStopAndDeAllocate() { |
- DCHECK_EQ(capture_thread_.message_loop(), base::MessageLoop::current()); |
+ DCHECK(capture_thread_.task_runner()->BelongsToCurrentThread()); |
file_parser_.reset(); |
client_.reset(); |
next_frame_time_ = base::TimeTicks(); |
} |
void FileVideoCaptureDevice::OnCaptureTask() { |
- DCHECK_EQ(capture_thread_.message_loop(), base::MessageLoop::current()); |
+ DCHECK(capture_thread_.task_runner()->BelongsToCurrentThread()); |
if (!client_) |
return; |