Skip to content

Commit

Permalink
Add friendly message when encoder detection fails
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Mar 1, 2024
1 parent 3fa6a10 commit 526972b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2721,7 +2721,13 @@ namespace video {
}

if (chosen_encoder == nullptr) {
BOOST_LOG(fatal) << "Couldn't find any working encoder"sv;
BOOST_LOG(fatal) << "Unable to find display or encoder during startup."sv;
if (!config::video.adapter_name.empty() || !config::video.output_name.empty()) {
BOOST_LOG(fatal) << "Please ensure your manually chosen GPU and monitor are connected and powered on."sv;
}
else {
BOOST_LOG(fatal) << "Please check that a display is connected and powered on."sv;
}
return -1;
}

Expand Down

0 comments on commit 526972b

Please sign in to comment.