mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
HttpCamera: Force reconnect when SetUrls() is called. (#122)
The URL often contains other information like the camera resolution, not to mention actually changing cameras!
This commit is contained in:
@@ -319,6 +319,7 @@ bool HttpCameraImpl::SetUrls(llvm::ArrayRef<std::string> urls,
|
||||
std::lock_guard<wpi::mutex> lock(m_mutex);
|
||||
m_locations.swap(locations);
|
||||
m_nextLocation = 0;
|
||||
m_streamSettingsUpdated = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user