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