From b31cd5fc8a828d734be40c4ff7698a21d67fdf63 Mon Sep 17 00:00:00 2001 From: tangchao0503 <735056338@qq.com> Date: Mon, 3 Apr 2023 13:17:56 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=85=B3=E9=97=AD=E5=BD=B1=E5=83=8F?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=8F=A5=E6=9F=84=EF=BC=9B=202=E3=80=81?= =?UTF-8?q?=E5=B0=86sbg=E6=96=87=E4=BB=B6=E5=90=8E=E7=BC=80=E4=BB=8Esbg?= =?UTF-8?q?=E6=94=B9=E4=B8=BAbin=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source_Files/sbgrecorder.cpp | 2 +- Source_Files/ximeaimager.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source_Files/sbgrecorder.cpp b/Source_Files/sbgrecorder.cpp index 9ee170e..4d195f9 100644 --- a/Source_Files/sbgrecorder.cpp +++ b/Source_Files/sbgrecorder.cpp @@ -789,7 +789,7 @@ void sbgtc::SbgRecorder::startRecordSbg() m_baseFileName=getFileNameBaseOnTime(); - QString sbgFileName=m_baseFileName+".sbg"; + QString sbgFileName=m_baseFileName+".bin"; FILE * fileHandle=fopen(sbgFileName.toStdString().c_str(),"w+b"); diff --git a/Source_Files/ximeaimager.cpp b/Source_Files/ximeaimager.cpp index 2e8ac38..f1ba62c 100644 --- a/Source_Files/ximeaimager.cpp +++ b/Source_Files/ximeaimager.cpp @@ -835,6 +835,7 @@ void WriteData2Disk::write2Disk() frameCounter++; } m_rgbImage->m_VideoWriter.release(); + fclose(hFile); std::cout<<"WriteData2Disk::write2Disk-----------------------写磁盘线程将退出,内存池可达到的最多元素数:" << m_pool->max_size() <