void CTs_media_codec_startup(void)
{
struct stat stBuff;
+ mediacodec_h stMediacodec = NULL;
if ( stat(ERR_LOG, &stBuff) == 0 )
{
remove(ERR_LOG);
g_bMediaCodecNotSupported = false;
g_bMismatch = false;
+
if ( !TCTCheckSystemInfoFeatureSupported(MEDIACODEC_FEATURE, API_NAMESPACE) )
{
- if ( mediacodec_create(&g_mediacodec) != TIZEN_ERROR_NOT_SUPPORTED )
+ if ( mediacodec_create(&stMediacodec) != TIZEN_ERROR_NOT_SUPPORTED )
{
g_bMismatch = true;
}
}
/** @} */ //end of ctc-mediacodec
-/** @} */ //end of ctc-mediacodec-testcases
\ No newline at end of file
+/** @} */ //end of ctc-mediacodec-testcases
#define START_TEST {\
FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\
-
if ( g_bMediaCodecNotSupported)\
{\
FPRINTF("[Line : %d][%s] Required feature of mediacodec is not supported. So leaving test\\n", __LINE__, API_NAMESPACE);\