X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bmusb.cpp;h=b400ac732ce8ae02a788aef8161695085e4a9bf0;hb=487a136592e4bd5acda92d35cf52fe4489c69bbf;hp=1eeedce846e57530939731d2f5ca4ca41b6620a8;hpb=753cbaf5cec7411bdfe5171404c8586b8015faec;p=bmusb diff --git a/bmusb.cpp b/bmusb.cpp index 1eeedce..b400ac7 100644 --- a/bmusb.cpp +++ b/bmusb.cpp @@ -1231,14 +1231,13 @@ bool decode_video_format(uint16_t video_format, VideoFormat *decoded_video_forma return false; } -vector BMUSBCapture::get_available_video_modes() const +map BMUSBCapture::get_available_video_modes() const { // The USB3 cards autodetect, and seem to have no provision for forcing modes. VideoMode auto_mode; - auto_mode.id = 0; auto_mode.name = "Autodetect"; auto_mode.autodetect = true; - return { auto_mode }; + return {{ 0, auto_mode }}; } void BMUSBCapture::set_video_mode(uint32_t video_mode_id)