Преглед изворни кода

Z991239-6031 #comment 日志优化

80274480 пре 10 месеци
родитељ
комит
dcd9bce495

+ 1 - 3
Module/mod_sipphone/video_render.cpp

@@ -80,7 +80,6 @@ static bool get_local_video_frame(video_frame** frame, int itype, Clibvideoqueue
 		int ivideo_width = 0;
 		int ivideo_height = 0;
 		int isize = local_video_queue->GetFrameSize(ivideo_width, ivideo_height);
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("isize = %d, ivideo_width = %d, ivideo_height = %d.", isize, ivideo_width, ivideo_height);
 		blog = false;
 	}
 
@@ -220,7 +219,7 @@ static void* rvc_videorender_func(void* arg)
 	int ivideo_width = 0;
 	int ivideo_height = 0;
 	int isize = local_video_queue->GetFrameSize(ivideo_width, ivideo_height);
-	DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("%s:%d isize = %d, ivideo_width = %d, ivideo_height = %d.",__FUNCTION__, __LINE__, isize, ivideo_width, ivideo_height);
+	
 	if (ivideo_width > 0 && ivideo_height > 0) {
 		iwidth = ivideo_width;
 		iheight = ivideo_height;
@@ -271,7 +270,6 @@ static void* rvc_videorender_func(void* arg)
 		ivideo_width = 0;
 		ivideo_height = 0;
 		isize = local_video_queue->GetFrameSize(ivideo_width, ivideo_height);
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("%s:%d isize = %d, ivideo_width = %d, ivideo_height = %d.", __FUNCTION__, __LINE__, isize, ivideo_width, ivideo_height);
 
 		for (; ; ) {
 #ifdef RVC_OS_WIN

+ 1 - 1
Other/libvideorender/libvideorender.cpp

@@ -214,7 +214,7 @@ int VideoRenderImpl::VideoRenderSetParam(videorender_param_t* tparam)
 	}
 
 	if (blog) {
-		RenderLog(RENDER_LOG_INFO, "RENDER: rendering driver in use: %s", render_info->name);
+		RenderLog(RENDER_LOG_DEBUG, "RENDER: rendering driver in use: %s", render_info->name);
 	}
 	//m_callback->Debug("    SDL_RENDERER_TARGETTEXTURE [%c]", (render_info->flags & SDL_RENDERER_TARGETTEXTURE) ? 'X' : ' ');
 	//m_callback->Debug("    SDL_RENDERER_SOFTWARE      [%c]", (render_info->flags & SDL_RENDERER_SOFTWARE) ? 'X' : ' ');

+ 2 - 7
Other/unix/libvideoframework/videoclock.c

@@ -158,19 +158,14 @@ void* local_video_sendfunc(void* param)
 		ts.tv_sec += (unsec / 1000000000);
 		ts.tv_nsec = (unsec % 1000000000);
 		//sem_getvalue(&clock->exit_sem, &ivalue);
-		//clockDbg(clock, "%s:%d sem value is %d", __FUNCTION__, __LINE__, ivalue);
-		if (0 != sem_timedwait(&clock->exit_sem, &ts) && (ETIMEDOUT == errno))
-		{
-			//clockDbg(clock, "%s:%d last errno = %d for %s", __FUNCTION__, __LINE__, errno, strerror(errno));
+		if (0 != sem_timedwait(&clock->exit_sem, &ts) && (ETIMEDOUT == errno)){
 			clock->get_frame(clock->get_user_data, &frame);
 			clock->put_frame(clock->put_user_data, &frame);
 		}
 		else {
-				clockDbg(clock, "%s:%d exit local video send thread.", __FUNCTION__, __LINE__);
-				break;
+			break;
 		}
 	}
-	//clockDbg(clock, "%s:%d exit local_video_sendfunc", __FUNCTION__, __LINE__);
 	video_frame_free(&frame);
 
 on_error: