From: Hyunsoo Park Date: Tue, 25 Feb 2020 07:26:54 +0000 (+0900) Subject: [ITC][mediastreamrecorder][Non-ACR][Change format setting] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8dc5813dba95b20e1aeb822ef2fa0589ff8296ca;p=test%2Ftct%2Fnative%2Fapi.git [ITC][mediastreamrecorder][Non-ACR][Change format setting] Change-Id: Ibbb80afa307587bf41eb186cce801fbe0603244b Signed-off-by: Hyunsoo Park --- diff --git a/src/itc/mediastreamrecorder/ITs-mediastreamrecorder-callback.c b/src/itc/mediastreamrecorder/ITs-mediastreamrecorder-callback.c index 2ae514f3f..53958edea 100755 --- a/src/itc/mediastreamrecorder/ITs-mediastreamrecorder-callback.c +++ b/src/itc/mediastreamrecorder/ITs-mediastreamrecorder-callback.c @@ -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; }