oss: fix opening default OSS device
Leftover from the output API changes: oss_open_default() was changed to return a void*, but it still returned "0" to report success. Report the OssData pointer instead.
This commit is contained in:
parent
17d9c1708b
commit
215d8aa8f6
@ -346,7 +346,7 @@ static void *oss_open_default(ConfigParam *param)
|
|||||||
if (ret[i] == 0) {
|
if (ret[i] == 0) {
|
||||||
OssData *od = newOssData();
|
OssData *od = newOssData();
|
||||||
od->device = default_devices[i];
|
od->device = default_devices[i];
|
||||||
return 0;
|
return od;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user