Beispiel #1
0
        /// <summary>
        /// Stops the decoder
        /// </summary>
        /// <returns><c>true</c>, if decoder was stoped, <c>false</c> otherwise.</returns>
        public bool StopDecoder()
        {
            try
            {
                if (_mediaCodec != null)
                {
                    _mediaCodec.Stop();
                    _mediaCodec.Reset();
                }

                return(true);
            }
            catch (System.Exception)
            {
                return(false);
            }
        }