]> git.sesse.net Git - nageru/blobdiff - main.cpp
Write some drop counters to stderr.
[nageru] / main.cpp
index a0e93420688acebd0e742d2632b10b4a6cd2733b..d916f44819841b105a80dfba6e3b5b2bf7d2d6e6 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();
 }
@@ -77,8 +76,8 @@ int record_thread_func()
                if (av_read_frame(format_ctx.get(), &pkt) != 0) {
                        break;
                }
-               fprintf(stderr, "Got a frame from camera %d, pts = %ld, size = %d\n",
-                       pkt.stream_index, pkt.pts, pkt.size);
+               //fprintf(stderr, "Got a frame from camera %d, pts = %ld, size = %d\n",
+               //      pkt.stream_index, pkt.pts, pkt.size);
                string filename = filename_for_frame(pkt.stream_index, pkt.pts);
                FILE *fp = fopen(filename.c_str(), "wb");
                if (fp == nullptr) {
@@ -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);
                        }
                });