From dddcc98647fccb08f080b05b0af5c6e3d458d59d Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 17 May 2023 15:38:15 +0300 Subject: [PATCH] Fix mpv profiles workability --- mpv/.mpv/config | 4 ++-- mpv/bin/mp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.44.0