X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmain.cpp;h=7343df189a3d86aa41ee357c9841aa60d723dab2;hb=931727fc4cccafc84023a053a6eff174b5ea8190;hp=7076230c7429f7cc2c236de332d4a1db253ebbbc;hpb=8c52fd7481d962d52b73961215251951a798a87a;p=nageru diff --git a/futatabi/main.cpp b/futatabi/main.cpp index 7076230..7343df1 100644 --- a/futatabi/main.cpp +++ b/futatabi/main.cpp @@ -487,15 +487,7 @@ int record_thread_func() FrameOnDisk frame = write_frame(pkt.stream_index, pts, pkt.data, pkt.size, &db); post_to_main_thread([pkt, frame] { - if (pkt.stream_index == 0) { - global_mainwindow->ui->input1_display->setFrame(pkt.stream_index, frame); - } else if (pkt.stream_index == 1) { - global_mainwindow->ui->input2_display->setFrame(pkt.stream_index, frame); - } else if (pkt.stream_index == 2) { - global_mainwindow->ui->input3_display->setFrame(pkt.stream_index, frame); - } else if (pkt.stream_index == 3) { - global_mainwindow->ui->input4_display->setFrame(pkt.stream_index, frame); - } + global_mainwindow->display_frame(pkt.stream_index, frame); }); if (last_pts != -1 && global_flags.slow_down_input) {