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:
Cameron Gutman 2023-04-09 16:34:07 -05:00
commit 6467e10def
4 changed files with 79 additions and 41 deletions

View file

@ -97,7 +97,7 @@ namespace video {
void *channel_data);
int
init();
probe_encoders();
} // namespace video
#endif // SUNSHINE_VIDEO_H