Changeset 348 for trunk/DirectShowSpy/RunPropertyBag.h
- Timestamp:
- Oct 17, 2014, 8:23:55 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DirectShowSpy/RunPropertyBag.h
r333 r348 284 284 static CString GetPropertyBagText(IRunPropertyBagAware* pRunPropertyBagAware, ISpy* pSpy = NULL) 285 285 { 286 if(pSpy)287 {288 CComVariantArray vValue;289 __C(pSpy->ReadRunPropertyBag(pRunPropertyBagAware, ATL_VARIANT_TRUE, &vValue));290 return GetPropertyBagText(vValue);291 }292 286 if(!pRunPropertyBagAware) 293 287 return _T(""); … … 296 290 static CString GetPropertyBagText(IUnknown* pBaseFilterUnknown, ISpy* pSpy = NULL) 297 291 { 292 CComQIPtr<ISpy> pEffectiveSpy = pSpy; 293 if(!pEffectiveSpy && pBaseFilterUnknown) 294 pEffectiveSpy = _FilterGraphHelper::GetFilterGraph(CComQIPtr<IBaseFilter>(pBaseFilterUnknown)); 295 if(pEffectiveSpy && pBaseFilterUnknown) 296 { 297 CComVariantArray vValue; 298 __C(pEffectiveSpy->ReadRunPropertyBag(pBaseFilterUnknown, ATL_VARIANT_TRUE, &vValue)); 299 return GetPropertyBagText(vValue); 300 } 298 301 const CComQIPtr<IRunPropertyBagAware> pRunPropertyBagAware = pBaseFilterUnknown; 299 CComQIPtr<ISpy> pEffectiveSpy = pSpy;300 if(!pEffectiveSpy && pRunPropertyBagAware)301 pEffectiveSpy = _FilterGraphHelper::GetFilterGraph(CComQIPtr<IBaseFilter>(pBaseFilterUnknown));302 302 return GetPropertyBagText(pRunPropertyBagAware, pEffectiveSpy); 303 303 }
Note: See TracChangeset
for help on using the changeset viewer.