mirror of
https://github.com/servo/servo.git
synced 2025-07-21 14:23:41 +01:00
Load GStreamer plugins in UWP builds.
This commit is contained in:
parent
5d3d766204
commit
bcbd425ef5
1 changed files with 9 additions and 2 deletions
|
@ -134,8 +134,15 @@ mod media_platform {
|
|||
|
||||
#[cfg(windows)]
|
||||
pub fn init() {
|
||||
let mut plugin_dir = std::env::current_exe().unwrap();
|
||||
plugin_dir.pop();
|
||||
// UWP apps have the working directory set appropriately. Win32 apps
|
||||
// do not and need some assistance finding the DLLs.
|
||||
let plugin_dir = if cfg!(feature = "uwp") {
|
||||
std::path::PathBuf::new()
|
||||
} else {
|
||||
let mut plugin_dir = std::env::current_exe().unwrap();
|
||||
plugin_dir.pop();
|
||||
plugin_dir
|
||||
};
|
||||
|
||||
let uwp_plugins = [
|
||||
"gstapp.dll",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue