public static void Stop()
        {
            if (!Assistant.Engine.CDepPresent)
            {
                return;
            }

            try
            {
                if (m_videostream != null)
                {
                    m_videostream.SignalToStop();
                    m_videostream.WaitForStop();
                    m_videostream = null;
                }

                if (m_filewriter != null)
                {
                    m_filewriter.Close();
                    m_filewriter = null;
                }
            }
            catch { }
            m_recording = false;
        }
Beispiel #2
0
        public static void Stop()
        {
            try
            {
                if (m_videostream != null)
                {
                    m_videostream.SignalToStop();
                    m_videostream.WaitForStop();
                    m_videostream = null;
                }


                if (m_filewriter != null && m_filewriter.IsOpen)
                {
                    m_filewriter.Close();
                    m_filewriter.Dispose();
                    m_filewriter = null;
                }
            }
            catch { }

            m_recording = false;
        }