Changeset 455


Ignore:
Timestamp:
May 22, 2015, 2:54:31 PM (8 years ago)
Author:
roman
Message:

Cosmetic

Location:
trunk/DirectShowSpy
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/DirectShowSpy/Common.h

    r440 r455  
    1717
    1818#include "AboutDialog.h"
    19 #include "..\..\Repository-Private\Utilities\EmailTools\Message.h"
     19namespace 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}
     26using namespace EmailTools;
    2027#define  BZ_NO_STDIO
    2128#include "..\..\Repository-Private\Utilities\DeflateTools\Bzip2Item.h"
  • trunk/DirectShowSpy/MediaSampleTrace.h

    r448 r455  
    107107                        } MediaSample;
    108108                } Data;
    109                 WCHAR pszComment[64];
     109                WCHAR pszComment[96];
    110110        } PAGEITEM;
    111111
     
    686686// CMediaSampleTracePropertySheet
    687687
     688// SUGG: Thread, Type fitlers
     689
    688690class CMediaSampleTracePropertySheet :
    689691        public CSizablePropertySheetT<CMediaSampleTracePropertySheet>,
     
    911913                                                continue;
    912914                                        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)));
    914916                                }
    915917                                _SortHelper::QuickSort<CFilterGraphValueSortTraits>(ValueArray);
     
    941943                                                continue;
    942944                                        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)));
    944946                                }
    945947                                _SortHelper::QuickSort<CFilterValueSortTraits>(ValueArray);
     
    11231125                        FileTimeToSystemTime(&reinterpret_cast<const FILETIME&>(nTime), &Time);
    11241126                        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;
    11251145                }
    11261146                CStringA CreateText()
     
    13001320                                        break;
    13011321                                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);
    13031323                                        break;
    13041324                                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);
    13061326                                        break;
    13071327                                case 5: // Stream
     
    13561376                        sTextBuffer.AppendFormat(_T("Process: %d\r\n"), (UINT_PTR) Item.m_Item.nProcessIdentifier);
    13571377                        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));
    13601380                        sTextBuffer.AppendFormat(_T("Stream: %ls\r\n"), Item.m_PageItem.pszStreamName);
    13611381                        sTextBuffer.AppendFormat(_T("Type: %s\r\n"), Item.FormatType());
Note: See TracChangeset for help on using the changeset viewer.