Cleanup in utils

This commit is contained in:
Alex Eidt 2022-09-06 15:26:47 -07:00
parent 34c0e44380
commit 32f30850c4
4 changed files with 8 additions and 12 deletions

View file

@ -65,7 +65,7 @@ func (camera *Camera) SetFrameBuffer(buffer []byte) error {
// Creates a new camera struct that can read from the device with the given stream index.
func NewCamera(stream int) (*Camera, error) {
// Check if ffmpeg is installed on the users machine.
if err := checkExists("ffmpeg"); err != nil {
if err := installed("ffmpeg"); err != nil {
return nil, err
}