]> git.sesse.net Git - nageru/blobdiff - mainwindow.cpp
If not using VA-API zerocopy, don't write extra copy textures.
[nageru] / mainwindow.cpp
index a1c291537fd5031f88fd33320f7c70f104ce4a7a..136890d93826d4b71c276eb896755eb648d9b27c 100644 (file)
@@ -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);