Example #1
0
        private void StopRunningProcesses()
        {
            try
            {
                if (m_VideoProcess != null)
                {
                    m_VideoProcess.WriteStandardInput("q\n");
                    Thread.Sleep(200);
                }
            }
            catch { }

            try
            {
                if (m_VideoProcess != null)
                {
                    m_VideoProcess.StopRunningProcess();
                }
            }
            catch { }

            m_VideoProcess = null;

            try
            {
                if (m_AudioProcess != null)
                {
                    m_AudioProcess.WriteStandardInput("q\n");
                    Thread.Sleep(200);
                }
            }
            catch { }

            try
            {
                if (m_AudioProcess != null)
                {
                    m_AudioProcess.StopRunningProcess();
                }
            }
            catch { }

            m_AudioProcess = null;
        }
Example #2
0
        private void StopRunningProcesses()
        {
            try
            {
                if (m_VideoProcess != null)
                {
                    m_VideoProcess.StopRunningProcess();
                }
            }
            catch { }

            m_VideoProcess = null;

            try
            {
                if (m_AudioProcess != null)
                {
                    m_AudioProcess.StopRunningProcess();
                }
            }
            catch { }

            m_AudioProcess = null;
        }