investigate

This commit is contained in:
Hiro Protagonist 2017-03-28 15:28:33 +13:00
parent 48ebeaf5d9
commit cfd5fc4178
2 changed files with 5 additions and 3 deletions

View file

@ -303,8 +303,8 @@ void MainWindow::startStopRecording() {
}
if ( image_buffer->length() > 0 ) {
setStatus( STOPPING );
// We just wait...
setStatus( STOPPING );
return;
}

View file

@ -42,7 +42,6 @@ void Recorder::newRecording( QString r_name ) {
// Clean r_name // TODO: Maybe Visual Feedback for that...
r_name.replace( QRegExp( "[^\\_a-zA-Z0-9]" ), "_" );
qDebug() << r_name;
recName = r_name;
// Verify Recdir... create directories...
@ -54,6 +53,7 @@ void Recorder::newRecording( QString r_name ) {
return;
}
qDebug() << "here";
bool statExists = QFile( record_dir.path() + "/" + ".stat" ).exists();
// get Status file
@ -63,6 +63,7 @@ void Recorder::newRecording( QString r_name ) {
return;
}
qDebug() << "here2";
if ( !statExists ) {
statFile->write( "0" );
}
@ -70,6 +71,8 @@ void Recorder::newRecording( QString r_name ) {
frame_n = 0;
time_c = 0;
qDebug() << "here3";
// If append, figure out Frame count etc...
if ( append ) {
if ( !restoreRecording() ) {
@ -86,7 +89,6 @@ void Recorder::newRecording( QString r_name ) {
f_err = recorder.AVIOpen( ( record_dir.path() + "/" + recName + "_" + QString::number( frame_n ) + ".avi" ).toStdString().c_str(), &options );
if ( f_err != PGRERROR_OK ) {
throw f_err;
qDebug() << ( "That's the problem." );
return;
}