Skip to content

Commit

Permalink
fix default camera selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhare committed Oct 19, 2020
1 parent 5b92203 commit 69ef916
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public VideoCaptureComponent(int width, int height) throws VideoCaptureException
} else {
for (final Device s : devices)
sources.addItem(s.getNameStr());
sources.setSelectedItem(currentDevice.getNameStr());
}

sources.addItemListener(this);
Expand Down

0 comments on commit 69ef916

Please sign in to comment.