Changeset 202 for trunk/DirectShowSpy


Ignore:
Timestamp:
Jul 10, 2013, 8:45:50 AM (11 years ago)
Author:
roman
Message:

Put available and selected clocks onto text

Location:
trunk/DirectShowSpy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/DirectShowSpy/DirectShowSpy.rc

    r199 r202  
    6060
    6161VS_VERSION_INFO VERSIONINFO
    62  FILEVERSION  1, 0, 0, 974
     62 FILEVERSION  1, 0, 0, 980
    6363 PRODUCTVERSION 1,0,0,1
    6464 FILEFLAGSMASK 0x3fL
     
    7979            VALUE "CompanyName", "Roman Ryltsov"
    8080            VALUE "FileDescription", "Alax.Info DirectShow Spy Module"
    81             VALUE "FileVersion",  "1, 0, 0, 974\0"
     81            VALUE "FileVersion",  "1, 0, 0, 980\0"
    8282            VALUE "InternalName", "DirectShowSpy.dll"
    8383            VALUE "LegalCopyright", "Copyright © Alax.Info, Roman Ryltsov, 2008-2013"
  • trunk/DirectShowSpy/FilterGraphHelper.h

    r201 r202  
    191191                                sText += AtlFormatString(_T("* ") _T("Process Directory: %s") _T("\r\n"), I(sDirectory));
    192192                }
     193                const CComQIPtr<IMediaFilter> pMediaFilter = pFilterGraph;
     194                CComPtr<IReferenceClock> pFilterGraphReferenceClock;
     195                const HRESULT nGetSyncSourceResult = pMediaFilter->GetSyncSource(&pFilterGraphReferenceClock);
     196                _Z45_DSHRESULT(nGetSyncSourceResult);
    193197                sText += _T("\r\n");
    194198                #pragma endregion
     
    213217                                        if(_FilterGraphHelper::GetFilterPins(pBaseFilter, PINDIR_OUTPUT, OutputPinArray))
    214218                                                sText += AtlFormatString(_T(" * ") _T("Output Pins: %s") _T("\r\n"), FormatPins(OutputPinArray));
     219                                        #pragma region IReferenceClock
     220                                        const CComQIPtr<IReferenceClock> pReferenceClock = pBaseFilter;
     221                                        if(pReferenceClock)
     222                                        {
     223                                                CRoArrayT<CString> Array;
     224                                                Array.Add(I(_T("Available")));
     225                                                if(pReferenceClock == pFilterGraphReferenceClock)
     226                                                        Array.Add(I(_T("Selected")));
     227                                                sText += AtlFormatString(_T(" * ") _T("Reference Clock: %s") _T("\r\n"), _StringHelper::Join(Array, _T(", ")));
     228                                        }
     229                                        #pragma endregion
    215230                                        #pragma region IFileSourceFilter
    216231                                        const CComQIPtr<IFileSourceFilter> pFileSourceFilter = pBaseFilter;
Note: See TracChangeset for help on using the changeset viewer.