IltmfConvert::get_SourceStream Example for C++

This method will set the source stream to the convert object

void SetSourceStream(IltmfConvert *pConvert, IStream* pSourceStream) 
{ 
 
   // try to set source stream object on the convert 
 
   HRESULT hr = pConvert->put_SourceStream(pSourceStream); 
 
   if(FAILED(hr)) 
 
      return; 
 
#ifdef _DEBUG 
 
   { 
 
      IStream *pStream = NULL; 
 
      // try to get the convert source stream object 
 
      HRESULT hr = pConvert->get_SourceStream((IUnknown**)&pStream); 
 
      ASSERT(pStream != NULL); 
 
   } 
 
#endif 
 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Media Foundation C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.