Skip to content

Commit

Permalink
fix(video): Close video device after checking V4L video modes
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonybilinski committed Jun 27, 2021
1 parent 65ff532 commit 9688a1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/camera/v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ QVector<VideoMode> v4l2::getDeviceModes(QString devName)
}
}

close(fd);
return modes;
}

Expand Down

0 comments on commit 9688a1e

Please sign in to comment.