mirror of https://github.com/bobwen-dev/hunter
fix build when building with with graphics, but no video
This commit is contained in:
parent
8fc070b71b
commit
42b1fe7507
|
@ -14,10 +14,7 @@ use gstreamer::prelude::*;
|
||||||
#[cfg(feature = "video")]
|
#[cfg(feature = "video")]
|
||||||
use gstreamer_app;
|
use gstreamer_app;
|
||||||
|
|
||||||
use failure::Error;
|
use failure::{Error, format_err};
|
||||||
#[cfg(feature = "video")]
|
|
||||||
use failure::format_err;
|
|
||||||
|
|
||||||
|
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
#[cfg(feature = "video")]
|
#[cfg(feature = "video")]
|
||||||
|
@ -51,10 +48,12 @@ fn main() -> MResult<()> {
|
||||||
.expect("Provide preview type")
|
.expect("Provide preview type")
|
||||||
.parse::<String>()
|
.parse::<String>()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
#[allow(unused_variables)]
|
||||||
let autoplay = args.get(7)
|
let autoplay = args.get(7)
|
||||||
.expect("Autoplay?")
|
.expect("Autoplay?")
|
||||||
.parse::<bool>()
|
.parse::<bool>()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
#[allow(unused_variables)]
|
||||||
let mute = args.get(8)
|
let mute = args.get(8)
|
||||||
.expect("Muted?")
|
.expect("Muted?")
|
||||||
.parse::<bool>()
|
.parse::<bool>()
|
||||||
|
|
Loading…
Reference in New Issue