fn rtsp_paths(&mut self, arg: &str) {
        if cfg!(feature = "discovery") {
            let re = Regex::new(r"^--rtsp-paths=(.*)$")
                .unwrap();

            self.rtsp_paths_file = re.captures(arg)
                .unwrap()
                .at(1)
                .unwrap()
                .to_string();
        } else {
            utils::error(RuntimeError::from("--rtsp-paths"),
                EXIT_CODE_USAGE, "unknown argument");
        }
    }
/// Process the rtsp-paths argument.
Process the rtsp-paths argument.
Process the rtsp - paths argument .
fn rtsp_paths(&mut self, arg: &str) {
        if cfg!(feature = "discovery") {
            let re = Regex::new(r"^--rtsp-paths=(.*)$")
                .unwrap();
            self.rtsp_paths_file = re.captures(arg)
                .unwrap()
                .at(1)
                .unwrap()
                .to_string();
        } else {
            utils::error(RuntimeError::from("--rtsp-paths"),
                EXIT_CODE_USAGE, "unknown argument");
        }
    }
fn rtsp_paths ( & mut self , arg : & str ) { if cfg ! ( feature " " ) { let re = Regex :: new ( r"^--rtsp-paths=(.*)$" ) . unwrap ( ) ; self . rtsp_paths_file = re . captures ( arg ) . unwrap ( ) . at ( 1 ) . unwrap ( ) . to_string ( ) ; } else { utils :: error ( RuntimeError :: from ( " " ) , EXIT_CODE_USAGE , " " ) ; } }
Process the rtsp-paths argument.
Process the rtsp - paths argument .
&mut self
arg
&str
&mut self
arg
&str