mirror of
https://github.com/vale981/Taevitas
synced 2025-03-04 17:11:40 -05:00
Some Cleanup
This commit is contained in:
parent
d1090381b5
commit
7cc7aa3528
1 changed files with 2 additions and 3 deletions
|
@ -159,7 +159,6 @@ RecorderError Recorder::verifyRecDir() {
|
|||
}
|
||||
|
||||
void Recorder::appendFrame( FlyCapture2::Image * image ) {
|
||||
emit RecorderError( RecorderError::CANT_OPEN_STATFILE );
|
||||
write_lock.lock();
|
||||
qDebug() << "Writing Frame...";
|
||||
|
||||
|
@ -170,7 +169,7 @@ void Recorder::appendFrame( FlyCapture2::Image * image ) {
|
|||
Error app_err = recorder.AVIAppend( image );
|
||||
if ( app_err != PGRERROR_OK ) {
|
||||
write_lock.unlock();
|
||||
emit writeError( app_err );
|
||||
emit writeError( app_err.GetDescription() );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -179,7 +178,7 @@ void Recorder::appendFrame( FlyCapture2::Image * image ) {
|
|||
app_err = image->Save( ( record_dir.path() + "/frames/" + recName + "_" + QString::number( frame_n ) + ".tiff" ).toStdString().c_str(), &frame_options );
|
||||
if ( app_err != PGRERROR_OK ) {
|
||||
write_lock.unlock();
|
||||
emit writeError( app_err );
|
||||
emit writeError( app_err.GetDescription() );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue