config: validate more in cameras dialog box

Fixes #152

This won't win any awards for best UI or cleanest UI code, but it's an
improvement. Long-term I want the web config UI instead.
This commit is contained in:
Scott Lamb
2021-08-23 15:55:47 -07:00
parent 30cea5cfcb
commit 95dec9791c
5 changed files with 85 additions and 36 deletions

View File

@@ -89,7 +89,7 @@ impl<C: Clocks + Clone> TestDb<C> {
streams: [
db::StreamChange {
sample_file_dir_id: Some(sample_file_dir_id),
rtsp_url: "rtsp://test-camera/main".to_owned(),
rtsp_url: Some(url::Url::parse("rtsp://test-camera/main").unwrap()),
record: true,
flush_if_sec,
},