/* WINAPI is indeed in prefix due to sync to application layer callings!! */ /** CreateDecoder* @return: success in return 0, otherwise failed.*/long CreateDecoder( ISVCDecoder** ppDecoder ){ if ( NULL == ppDecoder ){ return ERR_INVALID_PARAMETERS; } *ppDecoder = new CWelsDecoder(); if ( NULL == *ppDecoder ){ return ERR_MALLOC_FAILED; } return ERR_NONE;} /** DestroyDecoder*/void_t DestroyDecoder( ISVCDecoder* pDecoder ){ if ( NULL != pDecoder ){ delete (CWelsDecoder *)pDecoder; pDecoder = NULL; }}Lines 501–532 of 532. Previous lines
/* WINAPI is indeed in prefix due to sync to application layer callings!! */ /* * CreateDecoder * @return: success in return 0, otherwise failed. */ long CreateDecoder( ISVCDecoder** ppDecoder ) { if ( NULL == ppDecoder ){ return ERR_INVALID_PARAMETERS; } *ppDecoder = new CWelsDecoder(); if ( NULL == *ppDecoder ){ return ERR_MALLOC_FAILED; } return ERR_NONE; } /* * DestroyDecoder */ void_t DestroyDecoder( ISVCDecoder* pDecoder ) { if ( NULL != pDecoder ){ delete (CWelsDecoder *)pDecoder; pDecoder = NULL; } }