Change configuration file Format of mpv so we can more easily add settings and comments
authorOliver Schmidhauser <oli@glow.li>
Thu, 27 Jul 2017 07:06:51 +0000 (09:06 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 28 Jul 2017 12:00:03 +0000 (14:00 +0200)
packages/mpv/build.sh
packages/mpv/mpv.conf [new file with mode: 0644]

index fa13a29..cacb842 100644 (file)
@@ -33,7 +33,7 @@ termux_step_make_install () {
 
        # Use opensles audio out be default:
        mkdir -p $TERMUX_PREFIX/etc/mpv
-       echo "ao=opensles" > $TERMUX_PREFIX/etc/mpv/mpv.conf
+       cp $TERMUX_PKG_BUILDER_DIR/mpv.conf $TERMUX_PREFIX/etc/mpv/mpv.conf
 
        # Try to work around OpenSL ES library clashes:
        # Linking against libOpenSLES causes indirect linkage against
diff --git a/packages/mpv/mpv.conf b/packages/mpv/mpv.conf
new file mode 100644 (file)
index 0000000..0eab16e
--- /dev/null
@@ -0,0 +1,5 @@
+# Default configuration for mpv
+
+# Enable OpenSL ES output, since this should work on all Android devices
+ao=opensles
+