From: Sergey Matveev Date: Wed, 17 May 2023 12:38:15 +0000 (+0300) Subject: Fix mpv profiles workability X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=dddcc98647fccb08f080b05b0af5c6e3d458d59d Fix mpv profiles workability --- diff --git a/mpv/.mpv/config b/mpv/.mpv/config index 129dc25..a94fb92 100644 --- a/mpv/.mpv/config +++ b/mpv/.mpv/config @@ -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 diff --git a/mpv/bin/mp b/mpv/bin/mp index bdefc0a..903713c 100755 --- a/mpv/bin/mp +++ b/mpv/bin/mp @@ -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