From 779049ed3a6b17dabc79094bf3992733e1879bbf Mon Sep 17 00:00:00 2001 From: Oliver Whyte Date: Mon, 22 Aug 2016 14:07:41 -0700 Subject: [PATCH] Remove readonly modifier from mutable reference type fields, as per https://msdn.microsoft.com/en-us/library/ms182302.aspx --- Windows/VideoFrameAnalyzer/FrameGrabber.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Windows/VideoFrameAnalyzer/FrameGrabber.cs b/Windows/VideoFrameAnalyzer/FrameGrabber.cs index 0c3dbf2..194d893 100644 --- a/Windows/VideoFrameAnalyzer/FrameGrabber.cs +++ b/Windows/VideoFrameAnalyzer/FrameGrabber.cs @@ -128,8 +128,8 @@ namespace VideoFrameAnalyzer protected Predicate _analysisPredicate = null; protected VideoCapture _reader = null; protected Timer _timer = null; - protected readonly SemaphoreSlim _timerMutex = new SemaphoreSlim(1); - protected readonly AutoResetEvent _frameGrabTimer = new AutoResetEvent(false); + protected SemaphoreSlim _timerMutex = new SemaphoreSlim(1); + protected AutoResetEvent _frameGrabTimer = new AutoResetEvent(false); protected bool _stopping = false; protected Task _producerTask = null; protected Task _consumerTask = null;