// ######################################################################## // ##### TantaMFTBase_Sync Overrides, all child classes must implement these // ######################################################################## #region Overrides /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= /// <summary> /// Returns a value indicating if the proposed input type is acceptable to /// this MFT. /// /// An override of the abstract version in TantaMFTBase_Sync. /// </summary> /// <param name="pmt">The type to check. Should never be null.</param> /// <returns>S_Ok if the type is valid or MF_E_INVALIDTYPE.</returns> /// <history> /// 01 Nov 18 Cynic - Ported In /// </history> override protected HResult OnCheckInputType(IMFMediaType pmt) { HResult hr; // We accept any input type as long as the output type // has not been set yet if (OutputType == null) { hr = HResult.S_OK; } else { // Otherwise, proposed input must be identical to the output. hr = TantaWMFUtils.IsMediaTypeIdentical(pmt, OutputType); } return(hr); }
// ######################################################################## // ##### TantaMFTBase_Sync Overrides, all child classes must implement these // ######################################################################## #region Overrides /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= /// <summary> /// Returns a value indicating if the proposed input type is acceptable to /// this MFT. /// /// An override of the abstract version in TantaMFTBase_Sync. /// </summary> /// <param name="pmt">The type to check. Should never be null.</param> /// <returns>S_Ok if the type is valid or MF_E_INVALIDTYPE.</returns> /// <history> /// 01 Nov 18 Cynic - Ported In /// </history> override protected HResult OnCheckInputType(IMFMediaType pmt) { HResult hr; // We assume the input type will get checked first if (OutputType == null) { // we do not have an output type, check that the proposed // input type is acceptable hr = OnCheckMediaType(pmt); } else { // we have an output type hr = TantaWMFUtils.IsMediaTypeIdentical(pmt, OutputType); } return(hr); }