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};
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;
}
PRINT_RESULT_NORETURN(STREAMRECORDER_ERROR_NONE, nRet, "streamrecorder_unprepare", StreamRecorderGetError(nRet));
DestroyPacketAndFormatData();
+
return 0;
}
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};
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;
}
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));
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};
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;
}