mirror of
https://github.com/servo/servo.git
synced 2025-06-09 17:13:24 +00:00
Added gstreamer support to the magicleap port
This commit is contained in:
parent
555fa75b2c
commit
11b3d78f40
11 changed files with 246 additions and 11 deletions
|
@ -173,6 +173,15 @@ int Servo2D::init() {
|
|||
EGLSurface surf = plane_->getEGLSurface();
|
||||
EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
|
||||
// Set up gstreamer
|
||||
auto tmpdir = getTempPath();
|
||||
auto bindir = getPackagePath() + "bin";
|
||||
auto registry = getWritablePath() + "gstreamer-registry.bin";
|
||||
setenv("GIO_MODULE_DIR", bindir.c_str(), 1);
|
||||
setenv("GST_PLUGIN_SYSTEM_PATH", bindir.c_str(), 1);
|
||||
setenv("GST_REGISTRY", registry.c_str(), 1);
|
||||
setenv("XDG_CACHE_HOME", tmpdir.c_str(), 1);
|
||||
|
||||
// Hook into servo
|
||||
servo_ = init_servo(ctx, surf, dpy, true,
|
||||
this, logger, history, url, keyboard, uri_, args_,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue