Example #1
0
        public bool Stop()
        {
            // close streams
            CloseStream(InputStream, "input");
            CloseStream(transcoderInputStream, "transcoder input");
            CloseStream(DataOutputStream, "transcoder output");

            try
            {
                if (transcoderApplication != null && !transcoderApplication.HasExited)
                {
                    Log.Debug("Encoding: Killing transcoder");
                    transcoderApplication.Stop();
                }
            }
            catch (Exception e)
            {
                Log.Error("Encoding: Failed to kill transcoder", e);
            }

            return(true);
        }