Exemplo n.º 1
0
        /// <summary>
        /// Sets the movie player back to default state. Use when exiting or otherwise it shouldn't be required.
        /// </summary>
        public static void Reset()
        {
            if (FfccAudio != null)
            {
                FfccAudio.Dispose();
            }
            FfccAudio = null;
            if (FfccVideo != null)
            {
                FfccVideo.Dispose();
            }
            FfccVideo = null;

            MovieState = STATE_LOAD;
            if (frameTex != null && !frameTex.IsDisposed)
            {
                frameTex.Dispose();
            }

            frameTex = null;
            GC.Collect();
        }
Exemplo n.º 2
0
        private static void Reset()
        {
            if (T_Audio != null)
            {
                T_Audio.Abort("Ending video playback");
            }
            FfccAudio = null;
            if (FfccVideo != null)
            {
                FfccVideo.Dispose();
            }
            FfccVideo = null;

            MovieState = STATE_INIT;
            if (frameTex != null && !frameTex.IsDisposed)
            {
                frameTex.Dispose();
            }

            frameTex = null;
            GC.Collect();
        }