fixed buffer resizing for subdevices that aren't subdevice zero.
This commit is contained in:
parent
fadd1471cf
commit
6e52d6cfe1
1 changed files with 2 additions and 2 deletions
|
@ -316,7 +316,7 @@ int main(int argc,char *argv[])
|
|||
// do buffer resizing
|
||||
if(read_buf_size)
|
||||
{
|
||||
if(devinfo.read_subdevice){
|
||||
if(devinfo.read_subdevice < 0){
|
||||
fprintf(stderr,_("warning: no read subdevice, resize ignored\n"));
|
||||
}else{
|
||||
memset(&bc, 0, sizeof(bc));
|
||||
|
@ -337,7 +337,7 @@ int main(int argc,char *argv[])
|
|||
}
|
||||
if(write_buf_size)
|
||||
{
|
||||
if(devinfo.write_subdevice){
|
||||
if(devinfo.write_subdevice < 0){
|
||||
fprintf(stderr,_("warning: no write subdevice, resize ignored\n"));
|
||||
}else{
|
||||
memset(&bc, 0, sizeof(bc));
|
||||
|
|
Loading…
Add table
Reference in a new issue