Skip to content

Commit

Permalink
master: Use custom::create_default_streams if streams are empty
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Mar 29, 2021
1 parent 8ea5571 commit 84ad9df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/master.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::custom;
use crate::settings;
use crate::stream;

use crate::video::{types::*, video_source::VideoSource};
use crate::video_stream::types::VideoAndStreamInformation;

Expand All @@ -10,6 +10,10 @@ pub fn run() {
settings::manager::init(None);
let mut streams = settings::manager::streams();

if streams.is_empty() {
streams = custom::create_default_streams();
}

// Update all local video sources to make sure that is available
streams.iter_mut().for_each(|stream| {
if let VideoSourceType::Local(source) = &mut stream.video_source {
Expand Down

0 comments on commit 84ad9df

Please sign in to comment.