[ITC,CTC][mediacodec][Non-ACR][fixed build issues]
authorShobhit Verma <shobhit.v@samsung.com>
Wed, 10 Jan 2018 09:38:22 +0000 (15:08 +0530)
committerShobhit Verma <shobhit.v@samsung.com>
Wed, 10 Jan 2018 09:38:22 +0000 (15:08 +0530)
Change-Id: I7b8cd4c172e85c34f6ad231233f70c103f24e16b
Signed-off-by: Shobhit Verma <shobhit.v@samsung.com>
src/ctc/mediacodec/CTs-mediacodec.c
src/itc/mediacodec/ITs-mediacodec-common.h

index 78d3543e14e50d50a2d307c9e8c6fa56b051a2db..00ccdaeb26b097c3e398fb9820b6eef6adb108cf 100755 (executable)
@@ -33,6 +33,7 @@ bool g_bMismatch = false;
 void CTs_media_codec_startup(void)
 {
        struct stat stBuff;
+       mediacodec_h stMediacodec = NULL;
        if ( stat(ERR_LOG, &stBuff) == 0 )
        {
                remove(ERR_LOG);
@@ -44,9 +45,10 @@ void CTs_media_codec_startup(void)
        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;
                }
@@ -142,4 +144,4 @@ int CTc_media_codec_check_codec_p(void)
 }
 
 /** @} */ //end of ctc-mediacodec
-/** @} */ //end of ctc-mediacodec-testcases
\ No newline at end of file
+/** @} */ //end of ctc-mediacodec-testcases
index 9c882a5191df6a5d6c09fbb8d727aa4a1a5ec31c..c6a01718512f447daf5d8dfc0a45c0c976f93083 100755 (executable)
@@ -55,7 +55,6 @@ static GMainLoop *g_pMainLoop;
 
 #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);\