private static int CopyAttribute(IMFAttributes pSrc, IMFAttributes pDest, Guid key) { var variant = new PropVariant(); var hr = pSrc.GetItem(key, variant); if (Succeeded(hr)) { hr = pDest.SetItem(key, variant); } return(hr); }
HResult CopyAttribute(IMFAttributes pSrc, IMFAttributes pDest, Guid key) { PropVariant var = new PropVariant(); HResult hr = HResult.S_OK; hr = pSrc.GetItem(key, var); if (Succeeded(hr)) { hr = pDest.SetItem(key, var); } return(hr); }
int CopyAttribute(IMFAttributes pSrc, IMFAttributes pDest, Guid key) { PropVariant var = new PropVariant(); int hr = S_Ok; hr = pSrc.GetItem(key, var); if (Succeeded(hr)) { hr = pDest.SetItem(key, var); } return hr; }
private static int CopyAttribute(IMFAttributes pSrc, IMFAttributes pDest, Guid key) { var variant = new PropVariant(); var hr = pSrc.GetItem(key, variant); if (Succeeded(hr)) hr = pDest.SetItem(key, variant); return hr; }
public HResult SetItem(Guid guidKey, ConstPropVariant Value) { return(m_Attribs.SetItem(guidKey, Value)); }
private static void SetArea(IMFAttributes ia, Guid g, MFVideoArea a) { PropVariant pv = new PropVariant(a); MFError throwonhr = ia.SetItem(g, pv); }