} // namespace
-int BMUSBCapture::num_cards()
+unsigned BMUSBCapture::num_cards()
{
vector<USBCardDevice> found_cards = find_all_cards();
- int ret = found_cards.size();
+ unsigned ret = found_cards.size();
for (size_t i = 0; i < found_cards.size(); ++i) {
libusb_unref_device(found_cards[i].device);
}
// Note: Cards could be unplugged and replugged between this call and
// actually opening the card (in configure_card()).
- static int num_cards();
+ static unsigned num_cards();
std::map<uint32_t, VideoMode> get_available_video_modes() const override;
uint32_t get_current_video_mode() const override;