|
|
@@ -321,12 +321,12 @@ static int portaudio_capture_start(audio_capture_t* audio_cap)
|
|
|
}
|
|
|
int in_dev_id = translate_id(true, nId);
|
|
|
if (in_dev_id < 0) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("audio in device translate failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("audio in device translate failed!");
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
info = Pa_GetDeviceInfo(in_dev_id);
|
|
|
if (!info) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("get device info failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("get device info failed!");
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
inParam.channelCount = 1;
|
|
|
@@ -335,7 +335,7 @@ static int portaudio_capture_start(audio_capture_t* audio_cap)
|
|
|
inParam.sampleFormat = paInt16;
|
|
|
inParam.hostApiSpecificStreamInfo = NULL;
|
|
|
if (Pa_IsFormatSupported(&inParam, NULL, CAPTURE_CLOCK) != paNoError) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("audio capture create error, cannot open audio input device");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("audio capture create error, cannot open audio input device");
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
|
|
|
@@ -347,12 +347,12 @@ static int portaudio_capture_start(audio_capture_t* audio_cap)
|
|
|
}
|
|
|
int out_dev_id = translate_id(false, nId);
|
|
|
if (out_dev_id < 0) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("audio out device translate failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("audio out device translate failed!");
|
|
|
return Error_AudioOut;
|
|
|
}
|
|
|
info = Pa_GetDeviceInfo(out_dev_id);
|
|
|
if (!info) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("get device info failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("get device info failed!");
|
|
|
return Error_AudioOut;
|
|
|
}
|
|
|
outParam.channelCount = 1;
|
|
|
@@ -361,7 +361,7 @@ static int portaudio_capture_start(audio_capture_t* audio_cap)
|
|
|
outParam.sampleFormat = paInt16;
|
|
|
outParam.hostApiSpecificStreamInfo = NULL;
|
|
|
if (Pa_IsFormatSupported(NULL, &outParam, CAPTURE_CLOCK) != paNoError) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("audio capture create error, cannot open audio input device");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("audio capture create error, cannot open audio input device");
|
|
|
return Error_AudioOut;
|
|
|
}
|
|
|
|
|
|
@@ -369,13 +369,13 @@ static int portaudio_capture_start(audio_capture_t* audio_cap)
|
|
|
CAPTURE_FRAME_TIME * CAPTURE_CLOCK/1000, paClipOff|paDitherOff, &StreamCallback, audio_cap);
|
|
|
|
|
|
if (paError != paNoError) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("port audio open stream failed! paError = %d", paError);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("port audio open stream failed! paError = %d", paError);
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
|
|
|
paError = Pa_StartStream(audio_cap->stream);
|
|
|
if (paError != paNoError) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("port audio start stream failed! paError = %d", paError);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("port audio start stream failed! paError = %d", paError);
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
|
|
|
@@ -409,12 +409,12 @@ static int record_portaudio_capture_start(rvc_audio_capture_t* audio_cap)
|
|
|
|
|
|
int in_dev_id = translate_id(true, nId);
|
|
|
if (in_dev_id < 0) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("sales audio in device translate failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("sales audio in device translate failed!");
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
info = Pa_GetDeviceInfo(in_dev_id);
|
|
|
if (!info) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("get device info failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("get device info failed!");
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
|
|
|
@@ -424,7 +424,7 @@ static int record_portaudio_capture_start(rvc_audio_capture_t* audio_cap)
|
|
|
salesInParam.sampleFormat = paInt16;
|
|
|
salesInParam.hostApiSpecificStreamInfo = NULL;
|
|
|
if (Pa_IsFormatSupported(&salesInParam, NULL, audio_cap->iaudio_capture_samplerate) != paNoError) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("sales audio capture create error, cannot open audio input device, and current capture sample rate is %d.",audio_cap->iaudio_capture_samplerate);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("sales audio capture create error, cannot open audio input device, and current capture sample rate is %d.",audio_cap->iaudio_capture_samplerate);
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
|
|
|
@@ -432,13 +432,13 @@ static int record_portaudio_capture_start(rvc_audio_capture_t* audio_cap)
|
|
|
audio_cap->iaudio_capture_peroid * audio_cap->iaudio_capture_samplerate/1000, paClipOff|paDitherOff, &Sales_StreamCallback, audio_cap);
|
|
|
|
|
|
if (paError != paNoError) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("port audio open sales stream failed! paError = %d", paError);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("port audio open sales stream failed! paError = %d", paError);
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
|
|
|
paError = Pa_StartStream(audio_cap->stream);
|
|
|
if (paError != paNoError) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("port audio start sales stream failed! paError = %d", paError);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("port audio start sales stream failed! paError = %d", paError);
|
|
|
return Error_AudioIN;
|
|
|
}
|
|
|
|
|
|
@@ -797,7 +797,7 @@ static int video_shm_enqueue(Clibvideoqueue *shm_queue, video_frame *frame, unsi
|
|
|
tmp_frm.iframeid = iframeid;
|
|
|
//unsigned int nowtime = y2k_time_now();
|
|
|
if (!shm_queue->InsertVideo(&tmp_frm, flags, ucaptime)) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("caution: insert shm video failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("caution: insert shm video failed!");
|
|
|
return Error_Unexpect;
|
|
|
} else {
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("insert shm video ok, and video frame id is %d.", tmp_frm.iframeid);
|
|
|
@@ -831,7 +831,7 @@ static void env_cap_on_frame(void *user_data, video_frame *frame)
|
|
|
|
|
|
if (rc != Error_Succeed)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("env snapshot queue enqueue failed! Error = %d, camera_type=%d.", rc, video_cap->camera_type);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("env snapshot queue enqueue failed! Error = %d, camera_type=%d.", rc, video_cap->camera_type);
|
|
|
}
|
|
|
else {
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("env snapshot queue enqueue[%d] success and camera_type=%d.", video_cap->frame_id, video_cap->camera_type);
|
|
|
@@ -875,7 +875,7 @@ static void env_cap_on_frame(void *user_data, video_frame *frame)
|
|
|
video_shm_enqueue(video_cap->preview_shm_queue, &preview_frame, video_cap->ulastcaptime, 0, video_cap->frame_id);
|
|
|
|
|
|
if (rc != Error_Succeed){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("env preview_shm_queue enqueue failed, error = %d", rc);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("env preview_shm_queue enqueue failed, error = %d", rc);
|
|
|
}
|
|
|
else {
|
|
|
//if (0 == video_cap->frame_id%10){
|
|
|
@@ -898,7 +898,7 @@ static void env_cap_on_frame(void *user_data, video_frame *frame)
|
|
|
sws_scale(video_cap->rtp_sws_ctx, src_data, src_linesize, 0, frame->height, rtp_frame.data, rtp_frame.linesize);
|
|
|
video_shm_enqueue(video_cap->rtp_shm_queue, &rtp_frame, video_cap->ulastcaptime, 0, video_cap->frame_id);
|
|
|
if (rc != Error_Succeed) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("env rtp_shm_queue enqueue failed! Error = %d", rc);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("env rtp_shm_queue enqueue failed! Error = %d", rc);
|
|
|
}
|
|
|
else {
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("env rtp_shm_queue enqueue[%d] success, and current video queue len is %d.", video_cap->frame_id, video_cap->rtp_shm_queue->GetVideoLens());
|
|
|
@@ -993,7 +993,7 @@ static void opt_cap_on_frame(void *user_data, video_frame *frame)
|
|
|
|
|
|
if (rc != Error_Succeed)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("opt snapshot queue enqueue shm failed! Error = %d, camera_type=%d", rc, video_cap->camera_type);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("opt snapshot queue enqueue shm failed! Error = %d, camera_type=%d", rc, video_cap->camera_type);
|
|
|
}
|
|
|
else {
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("opt snapshot queue enqueue[%d] success, and current video queue len is %d.", video_cap->frame_id, video_cap->snapshot_shm_queue->GetVideoLens());
|
|
|
@@ -1047,7 +1047,7 @@ static void opt_cap_on_frame(void *user_data, video_frame *frame)
|
|
|
|
|
|
rc = video_shm_enqueue(video_cap->rtp_shm_queue, &rtp_frame, video_cap->ulastcaptime, 0, video_cap->frame_id);
|
|
|
if (rc != Error_Succeed){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("opt rtp_shm_queue enqueue shm failed! Error = %d, camera_type=%d", rc, video_cap->camera_type);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("opt rtp_shm_queue enqueue shm failed! Error = %d, camera_type=%d", rc, video_cap->camera_type);
|
|
|
}
|
|
|
|
|
|
//static int irtp_frame = 0;
|
|
|
@@ -1191,7 +1191,7 @@ static int video_capture_start_win(video_capture_t* video_cap)
|
|
|
dev_id = capture_get_video_device_id(conf->strVideoEnv);
|
|
|
if (dev_id == -1)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("No environment camera,please check config file or device!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("No environment camera,please check config file or device!");
|
|
|
return -1;
|
|
|
}
|
|
|
}
|
|
|
@@ -1200,7 +1200,7 @@ static int video_capture_start_win(video_capture_t* video_cap)
|
|
|
dev_id = capture_get_video_device_id(conf->strVideoOpt);
|
|
|
if (dev_id == -1)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("No operation camera,please check config file or device!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("No operation camera,please check config file or device!");
|
|
|
return -1;
|
|
|
}
|
|
|
}
|
|
|
@@ -1210,7 +1210,7 @@ static int video_capture_start_win(video_capture_t* video_cap)
|
|
|
rc = calc_capture_mode(REC_COMMON_VIDEO_SNAPSHOT_WIDTH, REC_COMMON_VIDEO_SNAPSHOT_HEIGHT, &cap_mode);
|
|
|
if (rc != 0)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("calc cap_mode failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("calc cap_mode failed!");
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
@@ -1230,14 +1230,14 @@ static int video_capture_start_win(video_capture_t* video_cap)
|
|
|
rc = videocap_create(&video_cap->cap, ¶m);
|
|
|
if (rc != 0)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("videocap create failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("videocap create failed!");
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
rc = videocap_start(video_cap->cap);
|
|
|
if (rc != 0)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("videocap start failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("videocap start failed!");
|
|
|
videocap_destroy(video_cap->cap);
|
|
|
video_cap->cap = NULL;
|
|
|
return rc;
|
|
|
@@ -1373,7 +1373,7 @@ namespace MediaController {
|
|
|
memcpy(&cap->config, config, sizeof(capture_config_t));
|
|
|
cap->audio = audio_capture_create(cap);
|
|
|
if (!cap->audio) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("create audio capture object failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("create audio capture object failed!");
|
|
|
return Error_Unexpect;
|
|
|
}
|
|
|
|
|
|
@@ -1381,7 +1381,7 @@ namespace MediaController {
|
|
|
if (dev_id_env != -1) {
|
|
|
cap->env_video = video_capture_create(cap, CAMERA_TYPE_ENV);
|
|
|
if (!cap->env_video) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("create env video object failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("create env video object failed!");
|
|
|
return Error_Unexpect;
|
|
|
}
|
|
|
}
|
|
|
@@ -1394,13 +1394,13 @@ namespace MediaController {
|
|
|
if (dev_id_opt != -1){
|
|
|
cap->opt_video = video_capture_create(cap, CAMERA_TYPE_OPT);
|
|
|
if (!cap->opt_video) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("create opt video object failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("create opt video object failed!");
|
|
|
return Error_Unexpect;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if((dev_id_env == -1)&&(dev_id_opt == -1)){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("all camera device id error!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("all camera device id error!");
|
|
|
capture_destroy(cap);
|
|
|
return Error_AllCamera;
|
|
|
}
|
|
|
@@ -1419,7 +1419,7 @@ namespace MediaController {
|
|
|
cap->env_video = video_capture_create(cap, CAMERA_TYPE_ENV);
|
|
|
if (!cap->env_video)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("create env video object failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("create env video object failed!");
|
|
|
return Error_Unexpect;
|
|
|
}
|
|
|
}
|
|
|
@@ -1428,7 +1428,7 @@ namespace MediaController {
|
|
|
cap->opt_video = video_capture_create(cap, CAMERA_TYPE_OPT);
|
|
|
if (!cap->opt_video)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("create opt video object failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("create opt video object failed!");
|
|
|
return Error_Unexpect;
|
|
|
}
|
|
|
}
|
|
|
@@ -1446,7 +1446,7 @@ namespace MediaController {
|
|
|
memcpy(&cap->rvc_audio_config, config, sizeof(rvc_audio_capture_config_t));
|
|
|
cap->rvc_audio = salesrecord_audio_capture_create(cap);
|
|
|
if (!cap->rvc_audio) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("create sales record audio capture object failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("create sales record audio capture object failed!");
|
|
|
salesaudio_capture_destroy(cap);
|
|
|
cap = NULL;
|
|
|
return Error_Unexpect;
|
|
|
@@ -1517,11 +1517,11 @@ namespace MediaController {
|
|
|
if (rc != Error_Succeed) {
|
|
|
rslt = (ErrorCodeEnum)rc;
|
|
|
if (rslt == Error_AudioIN){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start audio In object failed! rc:%d", rc);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("start audio In object failed! rc:%d", rc);
|
|
|
LogWarn(Severity_Middle, Error_Debug,ERROR_MOD_MEDIACONTROLLER_HANDFREE_OPENFAIL,"open audioIn device fail,please check device");
|
|
|
}
|
|
|
else{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start audio Out object failed! rc:%d", rc);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("start audio Out object failed! rc:%d", rc);
|
|
|
LogWarn(Severity_Middle, Error_Debug,ERROR_MOD_MEDIACONTROLLER_HANDFREE_OPENFAIL,"open audioOut device fail,please check device");
|
|
|
}
|
|
|
}
|
|
|
@@ -1544,7 +1544,6 @@ namespace MediaController {
|
|
|
if (rc != Error_Succeed)
|
|
|
{
|
|
|
cap->env_video->ustarttime = 0;
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start env video capture object failed! rc:%d", rc);
|
|
|
char strMessage[MAX_PATH*2] = {0};
|
|
|
get_camera_exception_message(strMessage, MAX_PATH*2, cap->config.strVideoEnv, "open environ camera fail, please check device.");
|
|
|
LogWarn(Severity_Middle,Error_NotInit,ERROR_MOD_MEDIACONTROLLER_ENVCAM_OPEN,strMessage);
|
|
|
@@ -1559,7 +1558,6 @@ namespace MediaController {
|
|
|
if (rc != Error_Succeed)
|
|
|
{
|
|
|
cap->opt_video->ustarttime = 0;
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start opt video capture object failed! rc:%d", rc);
|
|
|
char strMessage[MAX_PATH*2] = {0};
|
|
|
get_camera_exception_message(strMessage, MAX_PATH*2, cap->config.strVideoOpt, "open operate camera fail, please check device.");
|
|
|
LogWarn(Severity_Middle,Error_NotInit,ERROR_MOD_MEDIACONTROLLER_OPTCAM_OPEN, strMessage);
|
|
|
@@ -1570,13 +1568,12 @@ namespace MediaController {
|
|
|
{
|
|
|
cap->opt_video->ustarttime = y2k_time_now();
|
|
|
LogWarn(Severity_Low, Error_Debug, LOG_EVT_MEDIACONTROLLER_OPTCAM_OPEN, "start optcam success.");
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start env video capture object failed!");
|
|
|
return Error_EnvCamera;
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start all video capture object failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM)("start all video capture object failed!");
|
|
|
return Error_AllCamera;
|
|
|
}
|
|
|
}
|
|
|
@@ -1594,7 +1591,6 @@ namespace MediaController {
|
|
|
if (rc != Error_Succeed)
|
|
|
{
|
|
|
cap->opt_video->ustarttime = 0;
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start opt video capture object failed! rc:%d", rc);
|
|
|
char strMessage[MAX_PATH*2] = {0};
|
|
|
get_camera_exception_message(strMessage, MAX_PATH*2, cap->config.strVideoOpt, "open operate camera fail, please check device.");
|
|
|
LogWarn(Severity_Middle,Error_NotInit,ERROR_MOD_MEDIACONTROLLER_OPTCAM_OPEN,strMessage);
|
|
|
@@ -1626,7 +1622,6 @@ namespace MediaController {
|
|
|
if (rc != Error_Succeed)
|
|
|
{
|
|
|
cap->opt_video->ustarttime = 0;
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start opt video capture object failed! rc:%d", rc);
|
|
|
char strMessage[MAX_PATH*2] = {0};
|
|
|
get_camera_exception_message(strMessage, MAX_PATH*2, cap->config.strVideoOpt, "open operate camera fail,please check device.");
|
|
|
LogWarn(Severity_Middle,Error_NotInit,ERROR_MOD_MEDIACONTROLLER_OPTCAM_OPEN,strMessage);
|
|
|
@@ -1636,14 +1631,13 @@ namespace MediaController {
|
|
|
else
|
|
|
{
|
|
|
cap->opt_video->ustarttime = y2k_time_now();
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start env video capture object failed!");
|
|
|
LogWarn(Severity_Low, Error_Debug, LOG_EVT_MEDIACONTROLLER_OPTCAM_OPEN, "start optcam success.");
|
|
|
return Error_EnvCamera;
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start env video Error_AllCamera");
|
|
|
+ DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM)("start env video Error_AllCamera");
|
|
|
return Error_AllCamera;
|
|
|
}
|
|
|
}
|
|
|
@@ -1660,7 +1654,7 @@ namespace MediaController {
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("handfree audio is error, not start it.");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("handfree audio is error, not start it.");
|
|
|
}
|
|
|
|
|
|
return capture_start_envopt(cap);
|
|
|
@@ -1720,7 +1714,7 @@ namespace MediaController {
|
|
|
int rslt = record_audio_capture_start(cap->rvc_audio);
|
|
|
if (rslt != Error_Succeed) {
|
|
|
if (Error_AudioIN == rslt){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("start audio In object failed! rc:%d", rc);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("start audio In object failed! rc:%d", rc);
|
|
|
LogWarn(Severity_Middle, Error_Debug,ERROR_MOD_MEDIACONTROLLER_HANDFREE_OPENFAIL,"open audioIn device fail,please check device");
|
|
|
}
|
|
|
rc = (ErrorCodeEnum)rslt;
|
|
|
@@ -1748,7 +1742,7 @@ namespace MediaController {
|
|
|
}
|
|
|
}
|
|
|
else{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("sales record audio capture stop failed for param error.");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("sales record audio capture stop failed for param error.");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1916,17 +1910,17 @@ namespace MediaController {
|
|
|
if (Error == paNoError) {
|
|
|
rc = videoframework_init();
|
|
|
if (rc != 0) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("videoframework_init failed, rc=%d", rc);
|
|
|
+ DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM)("videoframework_init failed, rc=%d", rc);
|
|
|
return Error_Resource;
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("PaInitialize failed, rc=%d", Error);
|
|
|
+ DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM)("PaInitialize failed, rc=%d", Error);
|
|
|
return Error_Resource;
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("coinitialze failed! hr:%d", hr);
|
|
|
+ DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM)("coinitialze failed! hr:%d", hr);
|
|
|
return Error_Resource;
|
|
|
}
|
|
|
|