Pass HW decoder choice to player
This commit is contained in:
parent
028fd83296
commit
e078fe05dd
6 changed files with 115 additions and 72 deletions
|
|
@ -32,7 +32,7 @@ mod localize;
|
|||
use player::{PlayerMessage, VideoFrame, VideoQueue};
|
||||
mod player;
|
||||
|
||||
mod wrappers;
|
||||
mod hardware;
|
||||
|
||||
/// Runs application with these settings
|
||||
#[rustfmt::skip]
|
||||
|
|
@ -72,7 +72,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let Args { mut paths, .. } = args;
|
||||
let path = paths.pop().unwrap();
|
||||
|
||||
let (player_tx, video_queue_lock) = player::run(path);
|
||||
// TODO: Update video player config when it's updated via the app
|
||||
let (player_tx, video_queue_lock) = player::run(path, config.clone());
|
||||
|
||||
let mut settings = Settings::default();
|
||||
settings = settings.theme(config.app_theme.theme());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue