X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.cpp;h=136890d93826d4b71c276eb896755eb648d9b27c;hb=142184354968cd1b1918f35772bb6f9f0b1351d6;hp=a1c291537fd5031f88fd33320f7c70f104ce4a7a;hpb=e5ea0b2dca8a04baeccd52b8a3c327b3a234c8ef;p=nageru diff --git a/mainwindow.cpp b/mainwindow.cpp index a1c2915..136890d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -210,7 +210,7 @@ MainWindow::MainWindow() ui->timecode_stream_action->setChecked(global_flags.display_timecode_in_stream); ui->timecode_stdout_action->setChecked(global_flags.display_timecode_on_stdout); - if (global_flags.x264_video_to_http) { + if (global_flags.x264_video_to_http && isinf(global_flags.x264_crf)) { connect(ui->x264_bitrate_action, &QAction::triggered, this, &MainWindow::x264_bitrate_triggered); } else { ui->x264_bitrate_action->setEnabled(false);