Do not set audio track id. Set audio name

This commit is contained in:
Vladimir Borisov 2025-01-28 09:50:50 +02:00
parent 9e1c06c7d2
commit 82a0b15b35
No known key found for this signature in database
GPG key ID: F9A584BE4FCB6603

View file

@ -68,12 +68,11 @@ fn create_shareable_mpv(window_handle: HWND) -> Arc<Mpv> {
}
set_property!("wid", window_handle as i64);
set_property!("title", "Stremio");
set_property!("audio-client-name", "Stremio");
set_property!("terminal", "yes");
set_property!("msg-level", "all=no,cplayer=debug");
set_property!("quiet", "yes");
set_property!("hwdec", "auto");
// FIXME: very often the audio track isn't selected when using "aid" = "auto"
set_property!("aid", "1");
Ok(())
});
Arc::new(mpv.expect("cannot build MPV"))