]> git.sesse.net Git - nageru/blobdiff - main.cpp
Write some drop counters to stderr.
[nageru] / main.cpp
index 52c105f76b492875919e1c2575b8f9eeb43891dc..d916f44819841b105a80dfba6e3b5b2bf7d2d6e6 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -76,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) {
@@ -94,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);
                        }
                });