]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Fix mpv profiles workability
authorSergey Matveev <stargrave@stargrave.org>
Wed, 17 May 2023 12:38:15 +0000 (15:38 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 17 May 2023 12:38:15 +0000 (15:38 +0300)
mpv/.mpv/config
mpv/bin/mp

index 129dc251287a90bbba39456040710cda4c7d8c89..a94fb92d8f391f91093264c48a144b108b9b05ea 100644 (file)
@@ -21,8 +21,8 @@ video=no
 hwdec=vaapi
 hwdec-codecs=h264,hevc,vp8,vp9,mpeg2video,vc1
 
-[EA3]
+[E3]
 audio-device=oss//dev/dsp3
 
-[EA4]
+[E4]
 audio-device=oss//dev/dsp4
index bdefc0a78b1e18cb536dc8e521b0a4bb9f4a6df3..903713c19e752f755610f327f9b92f52cb5ca6e8 100755 (executable)
@@ -2,7 +2,7 @@
 
 args=()
 for arg ($@) {
-    [[ $arg =~ "^[A-Z][A-Z]$" ]] && arg="--profile=$arg"
+    [[ $arg =~ "^[A-Z][A-Z0-9]$" ]] && arg="--profile=$arg"
     args=($args $arg)
 }
 exec mpv $args