Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: media/capture/video/linux/video_capture_device_linux.h

Issue 1685713003: Remove V4L2CaptureDelegate{Single,Multi}Plane, VCD::Client::OnIncomingCapturedYuvData() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase -- hubbe@ added more VideoPixelFormats Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/capture/video/linux/video_capture_device_linux.h
diff --git a/media/capture/video/linux/video_capture_device_linux.h b/media/capture/video/linux/video_capture_device_linux.h
index 0f654db55e8f0b92e52520588de389e43725c754..45cad6676fcb51c8e85fbde5b2e74735e876b9eb 100644
--- a/media/capture/video/linux/video_capture_device_linux.h
+++ b/media/capture/video/linux/video_capture_device_linux.h
@@ -48,7 +48,8 @@ class VideoCaptureDeviceLinux : public VideoCaptureDevice {
// Internal delegate doing the actual capture setting, buffer allocation and
// circulation with the V4L2 API. Created and deleted in the thread where
// VideoCaptureDeviceLinux lives but otherwise operating on |v4l2_thread_|.
- scoped_refptr<V4L2CaptureDelegate> capture_impl_;
+ // Weak.
+ V4L2CaptureDelegate* capture_impl_;
perkj_chrome 2016/02/12 11:01:40 this looks like a memory leak. Should be scoped_pt
mcasas 2016/02/12 21:32:43 Acknowledged.
base::Thread v4l2_thread_; // Thread used for reading data from the device.

Powered by Google App Engine
This is Rietveld 408576698