Reprobe encoders each time streaming begins
Available encoders can change due to driver updates, GPU hotplugging, primary monitor changes, etc.
This commit is contained in:
parent
44f89de33b
commit
6467e10def
4 changed files with 79 additions and 41 deletions
|
|
@ -356,8 +356,8 @@ main(int argc, char *argv[]) {
|
|||
|
||||
reed_solomon_init();
|
||||
auto input_deinit_guard = input::init();
|
||||
if (video::init()) {
|
||||
BOOST_LOG(error) << "Video failed to initialize"sv;
|
||||
if (video::probe_encoders()) {
|
||||
BOOST_LOG(error) << "Video failed to find working encoder"sv;
|
||||
}
|
||||
|
||||
if (http::init()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue