mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 20:00:56 +00:00
10l - replace 6 with AF_NCH
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12009 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
162310efe9
commit
d30a992d15
@ -171,7 +171,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
|||||||
// Reinit must be called after this function has been called
|
// Reinit must be called after this function has been called
|
||||||
|
|
||||||
// Sanity check
|
// Sanity check
|
||||||
if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > 6){
|
if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > AF_NCH){
|
||||||
af_msg(AF_MSG_ERROR,"[channels] The number of output channels must be"
|
af_msg(AF_MSG_ERROR,"[channels] The number of output channels must be"
|
||||||
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
|
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
|
||||||
return AF_ERROR;
|
return AF_ERROR;
|
||||||
|
@ -96,7 +96,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
|||||||
// Reinit must be called after this function has been called
|
// Reinit must be called after this function has been called
|
||||||
|
|
||||||
// Sanity check
|
// Sanity check
|
||||||
if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > 6){
|
if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > AF_NCH){
|
||||||
af_msg(AF_MSG_ERROR,"[pan] The number of output channels must be"
|
af_msg(AF_MSG_ERROR,"[pan] The number of output channels must be"
|
||||||
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
|
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
|
||||||
return AF_ERROR;
|
return AF_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user