IltmmCompressor::get_Reliability Example for C++

// Selecting the first stable video compressor Also known as an encoder Also known as compressor, this is a module or algorithm to compress data. Playing that data back requires a decompressor, or decoder., this is a module or algorithm to compress data. Playing that data back requires a decompressor, or decoder Also known as a decompressor, this is a module or algorithm to decompress data..:
IltmmCompressors *pVideoCompressors;
IltmmCompressor *pCompressor;
long i, lCount, lReliability;

pCapture->get_VideoCompressors(&pVideoCompressors);
pVideoCompressors->get_Count(&lCount);
for ( i=0; i<lCount; i++ )
{
   pVideoCompressors->Item(I, &pCompressor);
   pCompressor->get_Reliability(&lReliability);
   pCompressor->Release();
   if( lReliability == ltmmCompressor_Reliability_Stable )
   {
      pVideoCompressors->put_Selection(i);
      break;
   }
}