[ITC][mediastreamrecorder][Non-ACR][Change format setting] 87/225887/4
authorHyunsoo Park <hance.park@samsung.com>
Tue, 25 Feb 2020 07:26:54 +0000 (16:26 +0900)
committershobhit verma <shobhit.v@samsung.com>
Tue, 25 Feb 2020 10:43:53 +0000 (10:43 +0000)
Change-Id: Ibbb80afa307587bf41eb186cce801fbe0603244b
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
src/itc/mediastreamrecorder/ITs-mediastreamrecorder-callback.c

index 2ae514f3f8c4fd80a73619a3d24f9f3f4f051413..53958edea2b7c400ffd1d77ce61035a5bafd5f92 100755 (executable)
@@ -399,9 +399,9 @@ int ITc_streamrecorder_set_unset_notify_cb_p(void)
 
        g_bCheckCb = false;
 
-    if(SetParam(g_hCallRecorder)!=0)
+    if(SetParamCall(g_hCallRecorder)!=0)
        {
-               FPRINTF("[Line : %d][%s] SetParam fail\\n", __LINE__, API_NAMESPACE);
+               FPRINTF("[Line : %d][%s] SetParamCall fail\\n", __LINE__, API_NAMESPACE);
                return 1;
        }
        char pPath[PATH_LEN] = {0};
@@ -423,9 +423,9 @@ int ITc_streamrecorder_set_unset_notify_cb_p(void)
        nRet = streamrecorder_start(g_hCallRecorder);
        PRINT_RESULT(STREAMRECORDER_ERROR_NONE, nRet, "streamrecorder_start", StreamRecorderGetError(nRet));
 
-       if(CreatePacketAndFormatData(g_hCallRecorder)!=0)
+       if(CreatePacketAndFormatDataCall(g_hCallRecorder)!=0)
        {
-               FPRINTF("[Line : %d][%s] CreatePacketAndFormatData fail\\n", __LINE__, API_NAMESPACE);
+               FPRINTF("[Line : %d][%s] CreatePacketAndFormatDataCall fail\\n", __LINE__, API_NAMESPACE);
                return 1;
        }
 
@@ -439,6 +439,7 @@ int ITc_streamrecorder_set_unset_notify_cb_p(void)
        PRINT_RESULT_NORETURN(STREAMRECORDER_ERROR_NONE, nRet, "streamrecorder_unprepare", StreamRecorderGetError(nRet));
 
        DestroyPacketAndFormatData();
+
        return 0;
 }
 
@@ -469,9 +470,9 @@ int ITc_streamrecorder_set_unset_recording_status_cb_p(void)
        int nRet = streamrecorder_set_recording_status_cb(g_hCallRecorder, StreamRecorder_recording_status_cb_p, "record");
        PRINT_RESULT(STREAMRECORDER_ERROR_NONE, nRet, "streamrecorder_set_recording_status_cb", StreamRecorderGetError(nRet));
 
-    if(SetParam(g_hCallRecorder)!=0)
+    if(SetParamCall(g_hCallRecorder)!=0)
        {
-               FPRINTF("[Line : %d][%s] SetParam fail\\n", __LINE__, API_NAMESPACE);
+               FPRINTF("[Line : %d][%s] SetParamCall fail\\n", __LINE__, API_NAMESPACE);
                return 1;
        }
        char pPath[PATH_LEN] = {0};
@@ -490,9 +491,9 @@ int ITc_streamrecorder_set_unset_recording_status_cb_p(void)
        nRet = streamrecorder_start(g_hCallRecorder);
        PRINT_RESULT(STREAMRECORDER_ERROR_NONE, nRet, "streamrecorder_start", StreamRecorderGetError(nRet));
 
-       if(CreatePacketAndFormatData(g_hCallRecorder)!=0)
+       if(CreatePacketAndFormatDataCall(g_hCallRecorder)!=0)
        {
-               FPRINTF("[Line : %d][%s] CreatePacketAndFormatData fail\\n", __LINE__, API_NAMESPACE);
+               FPRINTF("[Line : %d][%s] CreatePacketAndFormatDataCall fail\\n", __LINE__, API_NAMESPACE);
                return 1;
        }
 
@@ -503,6 +504,7 @@ int ITc_streamrecorder_set_unset_recording_status_cb_p(void)
                FPRINTF("[Line : %d][%s] Failed to call callback\\n", __LINE__, API_NAMESPACE);
                return 1;
        }
+
        nRet = streamrecorder_unset_recording_status_cb(g_hCallRecorder);
     PRINT_RESULT(STREAMRECORDER_ERROR_NONE, nRet, "streamrecorder_unset_recording_status_cb", StreamRecorderGetError(nRet));
 
@@ -546,9 +548,9 @@ int ITc_streamrecorder_set_unset_recording_limit_reached_cb_p(void)
     nRet = streamrecorder_set_recording_limit_reached_cb(g_hCallRecorder, StreamRecorder_recording_limit_reached_cb_p, "limit");
        PRINT_RESULT(STREAMRECORDER_ERROR_NONE, nRet, "streamrecorder_set_recording_limit_reached_cb", StreamRecorderGetError(nRet));
 
-       if(SetParam(g_hCallRecorder)!=0)
+       if(SetParamCall(g_hCallRecorder)!=0)
        {
-               FPRINTF("[Line : %d][%s] SetParam fail\\n", __LINE__, API_NAMESPACE);
+               FPRINTF("[Line : %d][%s] SetParamCall fail\\n", __LINE__, API_NAMESPACE);
                return 1;
        }
        char pPath[PATH_LEN] = {0};
@@ -567,9 +569,9 @@ int ITc_streamrecorder_set_unset_recording_limit_reached_cb_p(void)
        nRet = streamrecorder_start(g_hCallRecorder);
        PRINT_RESULT(STREAMRECORDER_ERROR_NONE, nRet, "streamrecorder_start", StreamRecorderGetError(nRet));
 
-       if(CreatePacketAndFormatData(g_hCallRecorder)!=0)
+       if(CreatePacketAndFormatDataCall(g_hCallRecorder)!=0)
        {
-               FPRINTF("[Line : %d][%s] CreatePacketAndFormatData fail\\n", __LINE__, API_NAMESPACE);
+               FPRINTF("[Line : %d][%s] CreatePacketAndFormatDataCall fail\\n", __LINE__, API_NAMESPACE);
                return 1;
        }