Changeset 455
- Timestamp:
- May 22, 2015, 2:54:31 PM (8 years ago)
- Location:
- trunk/DirectShowSpy
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DirectShowSpy/Common.h
r440 r455 17 17 18 18 #include "AboutDialog.h" 19 #include "..\..\Repository-Private\Utilities\EmailTools\Message.h" 19 namespace EmailTools 20 { 21 #include "Module_i.h" 22 #undef __Module_i_h__ 23 #include "..\..\Repository-Private\Utilities\EmailTools\Module_i.h" 24 #include "..\..\Repository-Private\Utilities\EmailTools\Message.h" 25 } 26 using namespace EmailTools; 20 27 #define BZ_NO_STDIO 21 28 #include "..\..\Repository-Private\Utilities\DeflateTools\Bzip2Item.h" -
trunk/DirectShowSpy/MediaSampleTrace.h
r448 r455 107 107 } MediaSample; 108 108 } Data; 109 WCHAR pszComment[ 64];109 WCHAR pszComment[96]; 110 110 } PAGEITEM; 111 111 … … 686 686 // CMediaSampleTracePropertySheet 687 687 688 // SUGG: Thread, Type fitlers 689 688 690 class CMediaSampleTracePropertySheet : 689 691 public CSizablePropertySheetT<CMediaSampleTracePropertySheet>, … … 911 913 continue; 912 914 IdentifierArray.Add(Item.m_Item.nFilterGraphIdentifier); 913 ValueArray.Add(CFilterGraphValue(Item.m_Item.nFilterGraphIdentifier, AtlFormatStringW(L"0x%p %ls", (UINT_PTR) Item.m_Item.nFilterGraphIdentifier, Item.m_Item.pszFilterGraphName)));915 ValueArray.Add(CFilterGraphValue(Item.m_Item.nFilterGraphIdentifier, GetFilterGraphFriendlyName(Item.m_Item))); 914 916 } 915 917 _SortHelper::QuickSort<CFilterGraphValueSortTraits>(ValueArray); … … 941 943 continue; 942 944 IdentifierArray.Add(Item.m_PageItem.nFilterIdentifier); 943 ValueArray.Add(CFilterValue(Item.m_PageItem.nFilterIdentifier, AtlFormatStringW(L"0x%p %ls", (UINT_PTR) Item.m_PageItem.nFilterIdentifier, Item.m_PageItem.pszFilterName)));945 ValueArray.Add(CFilterValue(Item.m_PageItem.nFilterIdentifier, GetFilterFriendlyName(Item.m_PageItem))); 944 946 } 945 947 _SortHelper::QuickSort<CFilterValueSortTraits>(ValueArray); … … 1123 1125 FileTimeToSystemTime(&reinterpret_cast<const FILETIME&>(nTime), &Time); 1124 1126 return AtlFormatString(_T("%02d:%02d:%02d.%03d"), Time.wHour, Time.wMinute, Time.wSecond, Time.wMilliseconds); 1127 } 1128 static CString GetFilterGraphFriendlyName(const ITEM& Item) 1129 { 1130 CString sFriendlyName(Item.pszFilterGraphName); 1131 if(!sFriendlyName.IsEmpty()) 1132 sFriendlyName.AppendFormat(_T(" (0x%p)"), (UINT_PTR) Item.nFilterGraphIdentifier); 1133 else 1134 sFriendlyName.AppendFormat(_T("0x%p"), (UINT_PTR) Item.nFilterGraphIdentifier); 1135 return sFriendlyName; 1136 } 1137 static CString GetFilterFriendlyName(const PAGEITEM& PageItem) 1138 { 1139 CString sFriendlyName(PageItem.pszFilterName); 1140 if(!sFriendlyName.IsEmpty()) 1141 sFriendlyName.AppendFormat(_T(" (0x%p)"), (UINT_PTR) PageItem.nFilterIdentifier); 1142 else 1143 sFriendlyName.AppendFormat(_T("0x%p"), (UINT_PTR) PageItem.nFilterIdentifier); 1144 return sFriendlyName; 1125 1145 } 1126 1146 CStringA CreateText() … … 1300 1320 break; 1301 1321 case 3: // Filter Graph 1302 sTextBuffer = AtlFormatString(_T("0x%p %ls"), (UINT_PTR) Item.m_Item.nFilterGraphIdentifier, Item.m_Item.pszFilterGraphName);1322 sTextBuffer = GetFilterGraphFriendlyName(Item.m_Item); 1303 1323 break; 1304 1324 case 4: // Filter 1305 sTextBuffer = AtlFormatString(_T("0x%p %ls"), (UINT_PTR) Item.m_PageItem.nFilterIdentifier, Item.m_PageItem.pszFilterName);1325 sTextBuffer = GetFilterFriendlyName(Item.m_PageItem); 1306 1326 break; 1307 1327 case 5: // Stream … … 1356 1376 sTextBuffer.AppendFormat(_T("Process: %d\r\n"), (UINT_PTR) Item.m_Item.nProcessIdentifier); 1357 1377 sTextBuffer.AppendFormat(_T("Thread: %d\r\n"), (UINT_PTR) Item.m_PageItem.nThreadIdentifier); 1358 sTextBuffer.AppendFormat(_T("Filter Graph: 0x%p %ls\r\n"), (UINT_PTR) Item.m_Item.nFilterGraphIdentifier, Item.m_Item.pszFilterGraphName);1359 sTextBuffer.AppendFormat(_T("Filter: 0x%p %ls\r\n"), (UINT_PTR) Item.m_PageItem.nFilterIdentifier, Item.m_PageItem.pszFilterName);1378 sTextBuffer.AppendFormat(_T("Filter Graph: %s\r\n"), GetFilterGraphFriendlyName(Item.m_Item)); 1379 sTextBuffer.AppendFormat(_T("Filter: %s\r\n"), GetFilterFriendlyName(Item.m_PageItem)); 1360 1380 sTextBuffer.AppendFormat(_T("Stream: %ls\r\n"), Item.m_PageItem.pszStreamName); 1361 1381 sTextBuffer.AppendFormat(_T("Type: %s\r\n"), Item.FormatType());
Note: See TracChangeset
for help on using the changeset viewer.