mirror of
https://github.com/vale981/Taevitas
synced 2025-03-05 17:41:42 -05:00
append investigation
This commit is contained in:
parent
6fdb6230f0
commit
abc750497f
1 changed files with 4 additions and 4 deletions
|
@ -46,14 +46,14 @@ void Recorder::newRecording( QString r_name ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get Status file
|
// get Status file
|
||||||
stat_file = QFile( record_dir.path() + "/" + ".stat" );
|
QFile stat_file( record_dir.path() + "/" + ".stat" );
|
||||||
if( !stat_file.open( QIODevice::ReadWrite | QIODevice::Text ) ) {
|
if( !stat_file.open( QIODevice::ReadWrite | QIODevice::Text ) ) {
|
||||||
throw RecorderError::CANT_OPEN_STATFILE;
|
throw RecorderError::CANT_OPEN_STATFILE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!stat_file.canReadLine())
|
if( !stat_file.canReadLine() )
|
||||||
stat_file.write("0\n");
|
stat_file.write( "0\n" );
|
||||||
|
|
||||||
// If append, figure out Frame count etc...
|
// If append, figure out Frame count etc...
|
||||||
if( append ) {
|
if( append ) {
|
||||||
|
@ -67,7 +67,7 @@ void Recorder::newRecording( QString r_name ) {
|
||||||
|
|
||||||
qDebug() << ( record_dir.path() + "/" + rec_name ).toStdString().c_str();
|
qDebug() << ( record_dir.path() + "/" + rec_name ).toStdString().c_str();
|
||||||
// open AVI in recorder
|
// open AVI in recorder
|
||||||
f_err = recorder.AVIOpen( ( record_dir.path() + "/" + rec_name + ".avi" ).toStdString().c_str(), &options );
|
f_err = recorder.AVIOpen( ( record_dir.path() + "/" + rec_name + "_" + QString::number( frame_n ) + ".avi" ).toStdString().c_str(), &options );
|
||||||
if ( f_err != PGRERROR_OK ) {
|
if ( f_err != PGRERROR_OK ) {
|
||||||
throw f_err;
|
throw f_err;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue