public HResult GetInputStreamInfo( int dwInputStreamID, out MFTInputStreamInfo pStreamInfo ) { // Overwrites everything with zeros. pStreamInfo = new MFTInputStreamInfo(); HResult hr = HResult.S_OK; try { Trace("GetInputStreamInfo"); CheckValidStream(dwInputStreamID); lock (m_TransformLockObject) { // The implementation can override the defaults, // and must set cbSize OnGetInputStreamInfo(ref pStreamInfo); } } catch (Exception e) { hr = (HResult)Marshal.GetHRForException(e); } return(CheckReturn(hr)); }
/// <summary> /// Return settings to describe input stream /// (see IMFTransform::GetInputStreamInfo). /// </summary> /// <param name="pStreamInfo">The struct where the parameters get set.</param> abstract protected void OnGetInputStreamInfo(ref MFTInputStreamInfo pStreamInfo);