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;

IltmmCapture__get_VideoCompressors
(pCapture, &pVideoCompressors);
IltmmCompressors__get_Count
(pVideoCompressors, &lCount);
for ( i=0; i<lCount; i++ )
{
   IltmmCompressors__put_Selection(pVideoCompressors, i);
   IltmmCompressors_Item(pVideoCompressors, i, &pCompressor);
   IltmmCompressor__get_Reliability(pCompressor, &lReliability);
   ltmmCompressor_Release();
   if( lReliability == ltmmCompressor_Reliability_Stable )
   {
      IltmmCompressors__put_Selection(i);
      break;
   }
}