NewTOAPIA.DirectShow.VideoCaptureDevice.ConnectFilters C# (CSharp) Method

ConnectFilters() private method

private ConnectFilters ( ) : void
return void
        void ConnectFilters()
        {
            int hr = 0;

            hr = captureGraphBuilder.RenderStream(PinCategory.Capture, MediaType.Video, fsourceBaseFilter, grabberFilter, nullRendererFilter);
            DsError.ThrowExceptionForHR(hr);

            // Get size of connected media
            // After we connect the grabber to the source filter, 
            // we can ask it what size it actually has, and what
            // media type.
            GetCaptureSize();

            // If we were not using a null renderer, we would have to do 
            // the following in order to turn off the default display window
            //win.set_AutoShow(false);
            //win = null;

            // But, since we're using a null renderer, we don't have to do anything
        }