fix swapped record on 6->7 upgrade

This commit is contained in:
Scott Lamb 2021-10-26 14:10:05 -07:00
parent 08cef6e790
commit 7b86db3c03
1 changed files with 2 additions and 2 deletions

View File

@ -314,9 +314,9 @@ fn copy_streams(tx: &rusqlite::Transaction) -> Result<(), Error> {
let cum_runs: i64 = row.get(10)?;
let config = crate::json::StreamConfig {
mode: (if record {
""
} else {
crate::json::STREAM_MODE_RECORD
} else {
""
})
.to_owned(),
url: Some(Url::parse(&rtsp_url)?),