|
@@ -803,7 +803,7 @@ bool libvideorecord_impl::GetRecordVideoFrameSize()
|
|
|
{
|
|
|
bool bRet = false;
|
|
|
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "Get Video FrameSize,record type is %s.", record_type_table[m_eRecordType]);
|
|
|
+ m_pHostApi->Debug(RECORD_LOG_DEBUG, "get video framesize, and record type is %s.", record_type_table[m_eRecordType]);
|
|
|
for (int i = 0; i < RECORD_FAILED_MAX_TIMES; i++) {
|
|
|
m_iVideoFrameSize = GetDestTypeVideoFrameSize(m_iWidth, m_iHeight, m_eRecordType);
|
|
|
if (m_iVideoFrameSize <= 0) {
|
|
@@ -818,7 +818,9 @@ bool libvideorecord_impl::GetRecordVideoFrameSize()
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- m_pHostApi->Debug(RECORD_LOG_INFO, "get video framesize success, and failed times is %d.", i);
|
|
|
+ if (i > 0) {
|
|
|
+ m_pHostApi->Debug(RECORD_LOG_INFO, "get video framesize success, and failed times is %d.", i);
|
|
|
+ }
|
|
|
bRet = true;
|
|
|
break;
|
|
|
}
|
|
@@ -850,7 +852,9 @@ bool libvideorecord_impl::GetRecordAudioFrameSize()
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- m_pHostApi->Debug(RECORD_LOG_INFO, "get audio frame size success, and failed time is %d.", i);
|
|
|
+ if (i > 0) {
|
|
|
+ m_pHostApi->Debug(RECORD_LOG_INFO, "get audio framesize success, and failed times is %d.", i);
|
|
|
+ }
|
|
|
bRet = true;
|
|
|
break;
|
|
|
}
|