Ignore:
Timestamp:
Nov 28, 2012, 1:51:00 AM (11 years ago)
Author:
roman
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/DumpMediaSamples/DumpMediaSamples.cpp

    r143 r152  
    55// A permission to use the source code is granted as long as reference to
    66// source website http://alax.info is retained.
    7 //
    8 // $Id$
    97
    108#include "stdafx.h"
    119//#include <qedit.h>
    1210#include "rodshow.h"
     11#include "Handler.h"
    1312
    1413#pragma region Re-Adding Removed from Windows SDK qedit.h
     
    172171                mutable CRoCriticalSection m_DataCriticalSection;
    173172                CMediaType m_pMediaType;
     173                CComPtr<CAbstractHandler> m_pHandler;
    174174
    175175        public:
     
    253253                                ;
    254254                        _tprintf(_T("\n"));
     255                }
     256                VOID SetHandler(CAbstractHandler* pHandler)
     257                {
     258                        CRoCriticalSectionLock DataLock(m_DataCriticalSection);
     259                        m_pHandler = pHandler;
    255260                }
    256261
     
    291296                                                0);
    292297                                }
     298                                if(m_pHandler)
     299                                        m_pHandler->HandleSample(Properties);
    293300                                _tprintf(_T("\n"));
    294301                        }
     
    373380                        const CMediaType pMediaType = _FilterGraphHelper::GetPinMediaType(_FilterGraphHelper::GetFilterPin(CComQIPtr<IBaseFilter>(pSampleGrabber), PINDIR_INPUT));
    374381                        pSampleGrabberCallback->SetMediaType(pMediaType);
     382                        //typedef CHdycInterlacingHandler CHandler;
     383                        //CObjectPtr<CHandler> pHandler;
     384                        //pHandler.Construct()->Initialize(pMediaType);
     385                        //pSampleGrabberCallback->SetHandler(pHandler);
    375386                }
    376387                #pragma endregion
     
    505516        return nResult;
    506517}
     518
     519
Note: See TracChangeset for help on using the changeset viewer.