- Timestamp:
- May 6, 2018, 7:31:42 AM (6 years ago)
- Location:
- trunk/DirectShowSpy
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DirectShowSpy/FilterGraphHelper.h
r840 r851 2784 2784 return _StringHelper::Join(Array, _T(", ")); 2785 2785 } 2786 static CString Format(FILTER_STATE Value) 2787 { 2788 static const CEnumerationNameT<FILTER_STATE> g_pMap[] = 2789 { 2790 #define A(x) { x, #x }, 2791 A(State_Stopped) 2792 A(State_Paused) 2793 A(State_Running) 2794 #undef A 2795 }; 2796 return FormatEnumerationT(g_pMap, Value); 2797 } 2786 2798 static CString GetFilterText(IBaseFilter* pBaseFilter, const CProcessData* pProcessData, IReferenceClock* pFilterGraphReferenceClock = NULL) 2787 2799 { 2788 2800 CString sText; 2789 #pragma region COM 2801 #pragma region COM, Server Version 2790 2802 CString sPath; 2791 2803 const CStringW sClassIdentifierString = _FilterGraphHelper::GetFilterClassIdentifierString(pBaseFilter); … … 2843 2855 } 2844 2856 #pragma endregion 2857 #pragma region Filter 2858 { 2859 FILTER_STATE State; 2860 const HRESULT nGetStateResult = pBaseFilter->GetState(0, &State); 2861 _Z45_DSHRESULT(nGetStateResult); 2862 if(SUCCEEDED(nGetStateResult)) 2863 sText += AtlFormatString(_T(" * ") _T("State: %s") _T("\r\n"), Format(State)); 2864 if(nGetStateResult != S_OK) 2865 sText += AtlFormatString(_T(" * ") _T("GetState Result: 0x%08X") _T("\r\n"), nGetStateResult); // VFW_S_STATE_INTERMEDIATE? 2866 } 2867 #pragma endregion 2845 2868 #pragma region Pin 2846 2869 _FilterGraphHelper::CPinArray InputPinArray; … … 3277 3300 const HRESULT nGetStateResult = pMediaControl->GetState(0, &State); 3278 3301 _Z45_DSHRESULT(nGetStateResult); 3279 static const LPCTSTR g_ppszStates[] = { _T("Stopped"), _T("Paused"), _T("Running"), }; 3280 if(SUCCEEDED(nGetStateResult) && (SIZE_T) State < DIM(g_ppszStates)) 3281 sText += AtlFormatString(_T("* ") _T("State: %s") _T("\r\n"), I(g_ppszStates[(SIZE_T) State])); 3302 if(SUCCEEDED(nGetStateResult)) 3303 sText += AtlFormatString(_T("* ") _T("State: %s") _T("\r\n"), I(Format((FILTER_STATE) State))); 3304 if(nGetStateResult != S_OK) 3305 sText += AtlFormatString(_T("* ") _T("GetState Result: 0x%08X") _T("\r\n"), nGetStateResult); // VFW_S_STATE_INTERMEDIATE? 3282 3306 } 3283 3307 _ATLCATCHALL() -
trunk/DirectShowSpy/Module.ini
r840 r851 4 4 ;Language=133 ;MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US) 5 5 ;Version String Format=%d.%d.%d.%d 6 Current Build Number=214 26 Current Build Number=2148 -
trunk/DirectShowSpy/RunEvent.h
r431 r851 16 16 #pragma once 17 17 18 #include "Common.h" 19 18 20 //////////////////////////////////////////////////////////// 19 21 // CRunEventHelper -
trunk/DirectShowSpy/RunPropertyBag.h
r588 r851 16 16 #pragma once 17 17 18 #include "Module_i.h"19 18 #include "Common.h" 20 19 -
trunk/DirectShowSpy/_Bin/BuildOutputHelper.ini
r194 r851 8 8 9 9 [Pack] 10 Output Path=D:\Projects\Alax.Info\Repository-P ublic\DirectShowSpy\_Archive10 Output Path=D:\Projects\Alax.Info\Repository-Private\volicon.com\Input\2018-03-26 11 11 Multiple Items=pdb7z
Note: See TracChangeset
for help on using the changeset viewer.