Exemple #1
0
        MmalConnectionImpl(MmalConnectionType *ptr, IOutputPort output, IInputPort input, IDownstreamComponent inputComponent, IComponent outputComponent, bool useCallback)
        {
            Ptr                 = ptr;
            OutputPort          = output;
            InputPort           = input;
            DownstreamComponent = inputComponent;
            UpstreamComponent   = outputComponent;

            if (useCallback)
            {
                CallbackHandler = new DefaultConnectionCallbackHandler(this);
                ConfigureConnectionCallback(output, input);
            }

            Enable();

            if (useCallback)
            {
                OutputPort.SendAllBuffers(ConnectionPool);
            }
        }