Changeset 152 for trunk/Utilities/DumpMediaSamples/DumpMediaSamples.cpp
- Timestamp:
- Nov 28, 2012, 1:51:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/DumpMediaSamples/DumpMediaSamples.cpp
r143 r152 5 5 // A permission to use the source code is granted as long as reference to 6 6 // source website http://alax.info is retained. 7 //8 // $Id$9 7 10 8 #include "stdafx.h" 11 9 //#include <qedit.h> 12 10 #include "rodshow.h" 11 #include "Handler.h" 13 12 14 13 #pragma region Re-Adding Removed from Windows SDK qedit.h … … 172 171 mutable CRoCriticalSection m_DataCriticalSection; 173 172 CMediaType m_pMediaType; 173 CComPtr<CAbstractHandler> m_pHandler; 174 174 175 175 public: … … 253 253 ; 254 254 _tprintf(_T("\n")); 255 } 256 VOID SetHandler(CAbstractHandler* pHandler) 257 { 258 CRoCriticalSectionLock DataLock(m_DataCriticalSection); 259 m_pHandler = pHandler; 255 260 } 256 261 … … 291 296 0); 292 297 } 298 if(m_pHandler) 299 m_pHandler->HandleSample(Properties); 293 300 _tprintf(_T("\n")); 294 301 } … … 373 380 const CMediaType pMediaType = _FilterGraphHelper::GetPinMediaType(_FilterGraphHelper::GetFilterPin(CComQIPtr<IBaseFilter>(pSampleGrabber), PINDIR_INPUT)); 374 381 pSampleGrabberCallback->SetMediaType(pMediaType); 382 //typedef CHdycInterlacingHandler CHandler; 383 //CObjectPtr<CHandler> pHandler; 384 //pHandler.Construct()->Initialize(pMediaType); 385 //pSampleGrabberCallback->SetHandler(pHandler); 375 386 } 376 387 #pragma endregion … … 505 516 return nResult; 506 517 } 518 519
Note: See TracChangeset
for help on using the changeset viewer.