]> git.sesse.net Git - nageru/blobdiff - main.cpp
Make it possible to scrub pts_in on a clip even if pts_out is not set.
[nageru] / main.cpp
index fc7428586c599d523cc1adf33fe02cccc3b56d1c..9bb666a317984e29deaecfea227377086a8987fc 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -30,6 +30,7 @@ extern "C" {
 #include "ref_counted_gl_sync.h"
 #include "timebase.h"
 #include "ui_mainwindow.h"
+#include "vaapi_jpeg_decoder.h"
 
 using namespace std;
 using namespace std::chrono;
@@ -97,6 +98,8 @@ int main(int argc, char **argv)
 
        thread(record_thread_func).detach();
 
+       init_jpeg_vaapi();
+
        return app.exec();
 }
 
@@ -139,13 +142,13 @@ int record_thread_func()
 
                post_to_main_thread([pkt] {
                        if (pkt.stream_index == 0) {
-                               global_mainwindow->ui->input1_display->setFrame(pkt.stream_index, pkt.pts);
+                               global_mainwindow->ui->input1_display->setFrame(pkt.stream_index, pkt.pts, /*interpolated=*/false);
                        } else if (pkt.stream_index == 1) {
-                               global_mainwindow->ui->input2_display->setFrame(pkt.stream_index, pkt.pts);
+                               global_mainwindow->ui->input2_display->setFrame(pkt.stream_index, pkt.pts, /*interpolated=*/false);
                        } else if (pkt.stream_index == 2) {
-                               global_mainwindow->ui->input3_display->setFrame(pkt.stream_index, pkt.pts);
+                               global_mainwindow->ui->input3_display->setFrame(pkt.stream_index, pkt.pts, /*interpolated=*/false);
                        } else if (pkt.stream_index == 3) {
-                               global_mainwindow->ui->input4_display->setFrame(pkt.stream_index, pkt.pts);
+                               global_mainwindow->ui->input4_display->setFrame(pkt.stream_index, pkt.pts, /*interpolated=*/false);
                        }
                });