-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cameraserver] Add GetInstance() to all functions (#5054)
GetInstance() is required to start the event listener that creates the network table entries. This is a C++ only change; Java uses static's and thus doesn't need this. The right fix is to implement cscore's AddListener() immediate notification, but that's much too invasive of a change to do this year. This fixes the common use cases, but doesn't fix all cases, as e.g. creating a UsbCamera manually before calling any CameraServer functions will still have the issue, but there's an easy workaround--call CameraServer::SetSize() prior to creating any cameras.
- Loading branch information
1 parent
8230fc6
commit 1f35750
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters