[recorder] fix missed signal

This commit is contained in:
Jan Grewe 2024-03-14 15:14:18 +01:00
parent 23b0a9afcd
commit d78b9d8b02

View File

@ -776,8 +776,8 @@ void PylonRecorder::startSinglecamRecording() {
delete writer;
writer = nullptr;
}
writer = new Writer(buffer, 0);
connect(writer, SLOT(writingDone()), this, SLOT(writerDone()));
writer = new Writer(buffer);
connect(writer, SIGNAL(writingDone()), this, SLOT(writerDone()));
writer->setVideoSpecs(specs);
QSettings s;
@ -807,7 +807,7 @@ void PylonRecorder::startDualcamRecording() {
VideoSpecs specs = getVideoSpecs(settings);
specs.filename = filename;
specs.format = VideoFormat::mp4;
qDebug() << "got video specifications";
qDebug() << "got video specifications " << specs.fps;
if (buffer != nullptr) {
buffer->clear();
delete buffer;
@ -839,7 +839,7 @@ void PylonRecorder::startDualcamRecording() {
delete writer;
writer = nullptr;
}
writer = new Writer(buffer, 0);
writer = new Writer(buffer);
connect(writer, SIGNAL(writingDone()), this, SLOT(writerDone()));
writer->setVideoSpecs(specs);