mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
chan_oss: fix "sample rate" error message
Merged revisions 370428 from http://svn.asterisk.org/svn/asterisk/branches/1.8 Merged revisions 370432 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -531,7 +531,7 @@ static int setformat(struct chan_oss_pvt *o, int mode)
|
|||||||
res = ioctl(fd, SNDCTL_DSP_SPEED, &fmt);
|
res = ioctl(fd, SNDCTL_DSP_SPEED, &fmt);
|
||||||
|
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
ast_log(LOG_WARNING, "Failed to set audio device to mono\n");
|
ast_log(LOG_WARNING, "Failed to set sample rate to %d\n", desired);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (fmt != desired) {
|
if (fmt != desired) {
|
||||||
|
|||||||
Reference in New Issue
Block a user