Beispiel #1
0
        private void Dispose(bool disposing)
        {
            if (this.disposed)
            {
                return;
            }

            if (disposing)
            {
                this.source       = null;
                this.streamInfo   = null;
                this.graph        = null;
                this.videoRender  = null;
                this.audioRender  = null;
                this.videoGrabber = null;
                this.audioGrabber = null;

                if (this.sampleHandler != null)
                {
                    this.sampleHandler.Dispose();
                    this.sampleHandler = null;
                }

                this.isConfigured = false;
            }

            this.disposed = true;
        }
Beispiel #2
0
        /// <summary>
        /// Configure the object.
        /// </summary>
        public void Configure()
        {
            this.CheckDisposed();
            this.CheckConfigured();
            this.Verify();

            // TODO: externalize!
            this.sampleHandler = new TSampleHandler {
                Source = this.Source
            };
            this.sampleHandler.Configure();

            this.SetupGraph();

            IsConfigured = true;
        }
        private void Dispose(bool disposing)
        {
            if (this.disposed) return;

            if (disposing)
            {
                this.source = null;
                this.streamInfo = null;
                this.graph = null;
                this.videoRender = null;
                this.audioRender = null;
                this.videoGrabber = null;
                this.audioGrabber = null;

                if (this.sampleHandler != null)
                {
                    this.sampleHandler.Dispose();
                    this.sampleHandler = null;
                }

                this.isConfigured = false;
            }

            this.disposed = true;
        }
        /// <summary>
        /// Configure the object.
        /// </summary>
        public void Configure()
        {
            this.CheckDisposed();
            this.CheckConfigured();
            this.Verify();

            // TODO: externalize!
            this.sampleHandler = new TSampleHandler { Source = this.Source };
            this.sampleHandler.Configure();

            this.SetupGraph();

            IsConfigured = true;
        }