Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Multimedia API Help

IltmmConvert::get_PreferredMPEG2Splitter Example for C++

Show in webframe

// setting and getting the preferred MPEG-2 splitter
#define MPEG2_SPLITTER  L"@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\\{3AE86B20-7BE8-11D1-ABE6-00A0C905F375}"

HRESULT GetConvertPreferedMPEG2Splitter(IltmmConvert *pConvert)
{
   BSTR bstr;

   // try to get the preferred mpeg2 splitter name
   HRESULT hr = pConvert->get_PreferredMPEG2Splitter(&bstr);

   // if we are not currently using the mpeg2 splitter, set it as preferred
   if (SUCCEEDED(hr) && wcscmp(MPEG2_SPLITTER, bstr) != 0)
      hr = pConvert->put_PreferredMPEG2Splitter(MPEG2_SPLITTER);

   // free the bster
   SysFreeString(bstr);

   return hr;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.