]> git.sesse.net Git - nageru/blobdiff - main.cpp
Make it possible to start a new clip before the previous one has ended.
[nageru] / main.cpp
index a0e93420688acebd0e742d2632b10b4a6cd2733b..ad42075363054145fc23d80777b43b1c90f3ca8b 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -52,7 +52,6 @@ int main(int argc, char **argv)
        mainWindow.show();
 
        thread(record_thread_func).detach();
-       start_player_thread();
 
        return app.exec();
 }
@@ -95,6 +94,8 @@ int record_thread_func()
                                global_mainwindow->ui->input2_display->setFrame(pkt.stream_index, pkt.pts);
                        } else if (pkt.stream_index == 2) {
                                global_mainwindow->ui->input3_display->setFrame(pkt.stream_index, pkt.pts);
+                       } else if (pkt.stream_index == 3) {
+                               global_mainwindow->ui->input4_display->setFrame(pkt.stream_index, pkt.pts);
                        }
                });