Remove as much trailing whitespace as possible.

Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
This commit is contained in:
Sean Bright
2017-12-22 09:23:22 -05:00
parent 9ef97b5a91
commit fd0ca1c3f9
700 changed files with 9249 additions and 9661 deletions

View File

@@ -24,14 +24,14 @@
*
* \note Add feature to play local M3U playlist file
* Vincent Li <mchun.li@gmail.com>
*
*
* \ingroup applications
*/
/*** MODULEINFO
<support_level>extended</support_level>
***/
#include "asterisk.h"
#include <sys/time.h>
@@ -81,7 +81,7 @@ static int mp3play(const char *filename, unsigned int sampling_rate, int fd)
char sampling_rate_str[8];
res = ast_safe_fork(0);
if (res < 0)
if (res < 0)
ast_log(LOG_WARNING, "Fork failed\n");
if (res) {
return res;
@@ -148,7 +148,7 @@ static int timed_read(int fd, void *data, int datalen, int timeout)
return -1;
}
return read(fd, data, datalen);
}
static int mp3_exec(struct ast_channel *chan, const char *data)
@@ -181,7 +181,7 @@ static int mp3_exec(struct ast_channel *chan, const char *data)
ast_log(LOG_WARNING, "Unable to create pipe\n");
return -1;
}
ast_stopstream(chan);
native_format = ast_format_cap_get_format(ast_channel_nativeformats(chan), 0);
@@ -203,7 +203,7 @@ static int mp3_exec(struct ast_channel *chan, const char *data)
myf.f.delivery.tv_sec = 0;
myf.f.delivery.tv_usec = 0;
myf.f.data.ptr = myf.frdata;
res = mp3play(data, sampling_rate, fds[1]);
if (!strncasecmp(data, "http://", 7)) {
timeout = 10000;
@@ -253,20 +253,20 @@ static int mp3_exec(struct ast_channel *chan, const char *data)
break;
}
ast_frfree(f);
}
}
}
}
}
close(fds[0]);
close(fds[1]);
if (pid > -1)
kill(pid, SIGKILL);
if (!res && owriteformat)
ast_set_write_format(chan, owriteformat);
ast_frfree(&myf.f);
return res;
}
@@ -281,4 +281,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "Silly MP3 Application");