aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2018-03-24 08:55:56 +0100
committerRainer Hochecker <fernetmenta@online.de>2018-03-24 08:55:56 +0100
commit38bd9d2a978a85bc620364d1fb64f1f4dc9ed8c4 (patch)
tree6560fe92e51cabb6827890f531c3c6eaa5066c74 /system
parenta6e6e8b0c698fa3fa8d7d5f835faa8fcdd323970 (diff)
VideoPlayer: only display settings for vaapi and vdpau if they are actually available
Diffstat (limited to 'system')
-rw-r--r--system/settings/linux.xml115
-rwxr-xr-xsystem/settings/settings.xml107
2 files changed, 115 insertions, 107 deletions
diff --git a/system/settings/linux.xml b/system/settings/linux.xml
index 7456a57982..4e3702d16c 100644
--- a/system/settings/linux.xml
+++ b/system/settings/linux.xml
@@ -1,5 +1,120 @@
<?xml version="1.0" encoding="utf-8" ?>
<settings version="1">
+ <section id="player">
+ <category id="videoplayer">
+ <group id="3">
+ <setting id="videoplayer.usevdpau" type="boolean" label="13425" help="36155">
+ <requirement>HAVE_LIBVDPAU</requirement>
+ <visible>false</visible>
+ <level>2</level>
+ <default>true</default>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.usevdpaumixer" type="boolean" label="13437" help="36421">
+ <requirement>HAVE_LIBVDPAU</requirement>
+ <visible>false</visible>
+ <level>2</level>
+ <default>true</default>
+ <dependencies>
+ <dependency type="enable">
+ <condition setting="videoplayer.usevdpau" operator="is">true</condition> <!-- USE VDPAU -->
+ </dependency>
+ </dependencies>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.usevdpaumpeg2" type="boolean" parent="videoplayer.usevdpau" label="13441" help="13442">
+ <requirement>HAVE_LIBVDPAU</requirement>
+ <visible>false</visible>
+ <level>3</level>
+ <default>true</default>
+ <dependencies>
+ <dependency type="enable">
+ <condition setting="videoplayer.usevdpau" operator="is">true</condition> <!-- USE VDPAU -->
+ </dependency>
+ </dependencies>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.usevdpaumpeg4" type="boolean" parent="videoplayer.usevdpau" label="13443" help="13444">
+ <requirement>HAVE_LIBVDPAU</requirement>
+ <visible>false</visible>
+ <level>3</level>
+ <default>false</default>
+ <dependencies>
+ <dependency type="enable">
+ <condition setting="videoplayer.usevdpau" operator="is">true</condition> <!-- USE VDPAU -->
+ </dependency>
+ </dependencies>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.usevdpauvc1" type="boolean" parent="videoplayer.usevdpau" label="13445" help="13446">
+ <requirement>HAVE_LIBVDPAU</requirement>
+ <visible>false</visible>
+ <level>3</level>
+ <default>true</default>
+ <dependencies>
+ <dependency type="enable">
+ <condition setting="videoplayer.usevdpau" operator="is">true</condition> <!-- USE VDPAU -->
+ </dependency>
+ </dependencies>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.usevaapi" type="boolean" label="13426" help="36156">
+ <requirement>HAVE_LIBVA</requirement>
+ <visible>false</visible>
+ <level>2</level>
+ <default>true</default>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.usevaapimpeg2" type="boolean" parent="videoplayer.usevaapi" label="13447" help="13448">
+ <requirement>HAVE_LIBVA</requirement>
+ <dependencies>
+ <dependency type="enable">
+ <condition setting="videoplayer.usevaapi" operator="is">true</condition>
+ </dependency>
+ </dependencies>
+ <level>3</level>
+ <default>true</default>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.usevaapimpeg4" type="boolean" parent="videoplayer.usevaapi" label="13449" help="13450">
+ <requirement>HAVE_LIBVA</requirement>
+ <visible>false</visible>
+ <dependencies>
+ <dependency type="enable">
+ <condition setting="videoplayer.usevaapi" operator="is">true</condition>
+ </dependency>
+ </dependencies>
+ <level>3</level>
+ <default>true</default>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.usevaapivc1" type="boolean" parent="videoplayer.usevaapi" label="13451" help="13452">
+ <requirement>HAVE_LIBVA</requirement>
+ <visible>false</visible>
+ <dependencies>
+ <dependency type="enable">
+ <condition setting="videoplayer.usevaapi" operator="is">true</condition>
+ </dependency>
+ </dependencies>
+ <level>3</level>
+ <default>true</default>
+ <control type="toggle" />
+ </setting>
+ <setting id="videoplayer.prefervaapirender" type="boolean" parent="videoplayer.usevaapi" label="13457" help="36433">
+ <requirement>HAVE_LIBVA</requirement>
+ <visible>false</visible>
+ <dependencies>
+ <dependency type="enable">
+ <condition setting="videoplayer.usevaapi" operator="is">true</condition>
+ </dependency>
+ </dependencies>
+ <level>3</level>
+ <default>true</default>
+ <control type="toggle" />
+ </setting>
+ </group>
+ </category>
+ </section>
<section id="system">
<category id="display">
<group id="1">
diff --git a/system/settings/settings.xml b/system/settings/settings.xml
index fc252bd86d..989c904ebc 100755
--- a/system/settings/settings.xml
+++ b/system/settings/settings.xml
@@ -192,113 +192,6 @@
</updates>
<control type="toggle" />
</setting>
- <setting id="videoplayer.usevdpau" type="boolean" label="13425" help="36155">
- <requirement>HAVE_LIBVDPAU</requirement>
- <level>2</level>
- <default>true</default>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.usevdpaumixer" type="boolean" label="13437" help="36421">
- <requirement>HAVE_LIBVDPAU</requirement>
- <level>2</level>
- <default>true</default>
- <dependencies>
- <dependency type="enable">
- <condition setting="videoplayer.usevdpau" operator="is">true</condition> <!-- USE VDPAU -->
- </dependency>
- </dependencies>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.usevdpaumpeg2" type="boolean" parent="videoplayer.usevdpau" label="13441" help="13442">
- <requirement>HAVE_LIBVDPAU</requirement>
- <level>3</level>
- <default>true</default>
- <dependencies>
- <dependency type="enable">
- <condition setting="videoplayer.usevdpau" operator="is">true</condition> <!-- USE VDPAU -->
- </dependency>
- <dependency type="visible" on="property" name="codecoptionvisible" setting="videoplayer.usevdpaumpeg2" operator="is">true</dependency>
- </dependencies>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.usevdpaumpeg4" type="boolean" parent="videoplayer.usevdpau" label="13443" help="13444">
- <requirement>HAVE_LIBVDPAU</requirement>
- <level>3</level>
- <default>false</default>
- <dependencies>
- <dependency type="enable">
- <condition setting="videoplayer.usevdpau" operator="is">true</condition> <!-- USE VDPAU -->
- </dependency>
- <dependency type="visible" on="property" name="codecoptionvisible" setting="videoplayer.usevdpaumpeg4" operator="is">true</dependency>
- </dependencies>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.usevdpauvc1" type="boolean" parent="videoplayer.usevdpau" label="13445" help="13446">
- <requirement>HAVE_LIBVDPAU</requirement>
- <level>3</level>
- <default>true</default>
- <dependencies>
- <dependency type="enable">
- <condition setting="videoplayer.usevdpau" operator="is">true</condition> <!-- USE VDPAU -->
- </dependency>
- <dependency type="visible" on="property" name="codecoptionvisible" setting="videoplayer.usevdpauvc1" operator="is">true</dependency>
- </dependencies>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.usevaapi" type="boolean" label="13426" help="36156">
- <requirement>HAVE_LIBVA</requirement>
- <level>2</level>
- <default>true</default>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.usevaapimpeg2" type="boolean" parent="videoplayer.usevaapi" label="13447" help="13448">
- <requirement>HAVE_LIBVA</requirement>
- <dependencies>
- <dependency type="enable">
- <condition setting="videoplayer.usevaapi" operator="is">true</condition>
- </dependency>
- <dependency type="visible" on="property" name="codecoptionvisible" setting="videoplayer.usevaapimpeg2" operator="is">true</dependency>
- </dependencies>
- <level>3</level>
- <default>true</default>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.usevaapimpeg4" type="boolean" parent="videoplayer.usevaapi" label="13449" help="13450">
- <requirement>HAVE_LIBVA</requirement>
- <dependencies>
- <dependency type="enable">
- <condition setting="videoplayer.usevaapi" operator="is">true</condition>
- </dependency>
- <dependency type="visible" on="property" name="codecoptionvisible" setting="videoplayer.usevaapimpeg4" operator="is">true</dependency>
- </dependencies>
- <level>3</level>
- <default>true</default>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.usevaapivc1" type="boolean" parent="videoplayer.usevaapi" label="13451" help="13452">
- <requirement>HAVE_LIBVA</requirement>
- <dependencies>
- <dependency type="enable">
- <condition setting="videoplayer.usevaapi" operator="is">true</condition>
- </dependency>
- <dependency type="visible" on="property" name="codecoptionvisible" setting="videoplayer.usevaapivc1" operator="is">true</dependency>
- </dependencies>
- <level>3</level>
- <default>true</default>
- <control type="toggle" />
- </setting>
- <setting id="videoplayer.prefervaapirender" type="boolean" parent="videoplayer.usevaapi" label="13457" help="36433">
- <requirement>HAVE_LIBVA</requirement>
- <dependencies>
- <dependency type="enable">
- <condition setting="videoplayer.usevaapi" operator="is">true</condition>
- </dependency>
- <dependency type="visible" on="property" name="codecoptionvisible" setting="videoplayer.usevaapivc1" operator="is">true</dependency>
- </dependencies>
- <level>3</level>
- <default>true</default>
- <control type="toggle" />
- </setting>
<setting id="videoplayer.usedxva2" type="boolean" label="13427" help="36158">
<requirement>HasDXVA2</requirement>
<level>2</level>