OMX_ERRORTYPE ITestCase::Start(OMX_STRING pConfigFileName,
                                  OMX_S32 nTestNum)
   {
      OMX_ERRORTYPE result = OMX_ErrorNone;

      Config config;
      config.GetEncoderConfig(&m_sConfig);
      config.GetDynamicConfig(&m_sDynamicConfig);

      m_nTestNum = nTestNum;

      result = config.Parse(pConfigFileName, &m_sConfig, &m_sDynamicConfig);
      if (result == OMX_ErrorNone)
      {
         result = ValidateAssumptions(&m_sConfig, &m_sDynamicConfig);

         if (result == OMX_ErrorNone)
         {
     	    if (m_sConfig.eControlRate == OMX_Video_ControlRateConstantSkipFrames || 
		        m_sConfig.eResyncMarkerType != RESYNC_MARKER_NONE) 
	        {
                  m_bIsVTPath = OMX_TRUE;
		}
 
            VENC_TEST_MSG_MEDIUM("Starting test thread...", 0, 0, 0);
            if (m_pThread)
            {
               result = m_pThread->Start(ThreadEntry,    // thread entry
                                         this,           // thread args
                                         0);             // priority
            }
            else
            {
               VENC_TEST_MSG_ERROR("Start test thread failed...", 0, 0, 0);
               result = OMX_ErrorUndefined;
            }
         }
         else
         {
            VENC_TEST_MSG_ERROR("Invalid config. Assumptions not validated", 0, 0, 0);
         }
      }
      else
      {
         VENC_TEST_MSG_ERROR("Error parsing config file", 0, 0, 0);
      }

      return result;
   }
  OMX_ERRORTYPE ITestCase::Start(OMX_STRING pConfigFileName,
      OMX_S32 nTestNum)
  {
    OMX_ERRORTYPE result = OMX_ErrorNone;

    Config config;
    config.GetEncoderConfig(&m_sConfig);
    config.GetDynamicConfig(&m_sDynamicConfig);

    m_nTestNum = nTestNum;

    result = config.Parse(pConfigFileName, &m_sConfig, &m_sDynamicConfig);
    if (result == OMX_ErrorNone)
    {
      result = ValidateAssumptions(&m_sConfig, &m_sDynamicConfig);

      if (result == OMX_ErrorNone)
      {
        VENC_TEST_MSG_MEDIUM("Starting test thread...");
        if (m_pThread)
        {
          result = m_pThread->Start(ThreadEntry,    // thread entry
              this,           // thread args
              0);             // priority
        }
        else
        {
          VENC_TEST_MSG_ERROR("Start test thread failed...");
          result = OMX_ErrorUndefined;
        }
      }
      else
      {
        VENC_TEST_MSG_ERROR("Invalid config. Assumptions not validated");
      }
    }
    else
    {
      VENC_TEST_MSG_ERROR("Error parsing config file");
    }

    return result;
  }