1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-22 11:18:32 +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:
henry 2004-03-04 19:39:16 +00:00
parent 162310efe9
commit d30a992d15
2 changed files with 2 additions and 2 deletions

View File

@ -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
// 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"
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
return AF_ERROR;

View File

@ -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
// 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"
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
return AF_ERROR;