quickfix: createindex: gracefully handle empty channel count, sampling rate, bitdepth
This commit is contained in:
parent
75159a4e2b
commit
ce1ff7aff5
@ -452,7 +452,10 @@ do
|
||||
expr2='(,|$)'
|
||||
if ! [[ $channelss =~ $expr1"$channels"$expr2 ]]
|
||||
then
|
||||
if [ -n "$channelss" ] \
|
||||
if [[ -n "$channels" ]]
|
||||
then
|
||||
:
|
||||
elif [ -n "$channelss" ] \
|
||||
&& (( channels < ${channelss%%,*} ))
|
||||
then
|
||||
channelss="$channels,$channelss"
|
||||
@ -462,7 +465,10 @@ do
|
||||
fi
|
||||
if ! [[ $rates =~ $expr1"$rate"$expr2 ]]
|
||||
then
|
||||
if [ -n "$rates" ] \
|
||||
if [[ -n "$rate" ]]
|
||||
then
|
||||
:
|
||||
elif [ -n "$rates" ] \
|
||||
&& (( rate < ${rates%%,*} ))
|
||||
then
|
||||
rates="$rate,$rates"
|
||||
@ -472,7 +478,10 @@ do
|
||||
fi
|
||||
if [ -n "$depth" ] && ! [[ $depths =~ $expr1"$depth"$expr2 ]]
|
||||
then
|
||||
if [ -n "$depths" ] \
|
||||
if [[ -n "$depth" ]]
|
||||
then
|
||||
:
|
||||
elif [ -n "$depths" ] \
|
||||
&& (( depth < ${depths%%,*} ))
|
||||
then
|
||||
depths="$depth,$depths"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user