Skip to content

Commit

Permalink
Disable vaapi as part of init
Browse files Browse the repository at this point in the history
  • Loading branch information
otsaloma committed Jul 28, 2019
1 parent 2638362 commit 563874d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions flatpak/io.otsaloma.gaupol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ finish-args:
- --device=dri
- --env=DCONF_USER_CONFIG_DIR=.config/dconf
- --env=GST_PLUGIN_PATH_1_0=/app/lib/gstreamer-1.0
# gst-vaapi (part of platform) doesn't work with gtksink.
# https://github.com/otsaloma/gaupol/issues/79
- --env=LIBVA_DRIVER_NAME=novaapi
- --filesystem=home
- --filesystem=xdg-run/dconf
- --filesystem=xdg-videos
Expand Down
6 changes: 6 additions & 0 deletions gaupol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@

import aeidon
import gi
import os

# Disable gst-vaapi as it doesn't seem to work with gtksink.
# https://github.com/otsaloma/gaupol/issues/79
os.environ["LIBVA_DRIVER_NAME"] = "null"
os.environ["LIBVA_DRIVERS_PATH"] = "/dev/null"

gi.require_version("Gdk", "3.0")
gi.require_version("Gtk", "3.0")
Expand Down

0 comments on commit 563874d

Please sign in to comment.