mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33: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)]
|
#[cfg(windows)]
|
||||||
pub fn init() {
|
pub fn init() {
|
||||||
|
// 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();
|
let mut plugin_dir = std::env::current_exe().unwrap();
|
||||||
plugin_dir.pop();
|
plugin_dir.pop();
|
||||||
|
plugin_dir
|
||||||
|
};
|
||||||
|
|
||||||
let uwp_plugins = [
|
let uwp_plugins = [
|
||||||
"gstapp.dll",
|
"gstapp.dll",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue