From ce3d56920b15facbb64b3caf0d823a3f57c0dded Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Fri, 22 Dec 2017 09:14:07 -0500 Subject: Remove as much trailing whitespace as possible. Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0 --- apps/app_mp3.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'apps/app_mp3.c') diff --git a/apps/app_mp3.c b/apps/app_mp3.c index e27eb3774..17f7874af 100644 --- a/apps/app_mp3.c +++ b/apps/app_mp3.c @@ -24,14 +24,14 @@ * * \note Add feature to play local M3U playlist file * Vincent Li - * + * * \ingroup applications */ /*** MODULEINFO extended ***/ - + #include "asterisk.h" ASTERISK_FILE_VERSION(__FILE__, "$Revision$") @@ -83,7 +83,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; @@ -150,7 +150,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) @@ -183,7 +183,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); @@ -205,7 +205,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; @@ -255,20 +255,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; } @@ -283,4 +283,3 @@ static int load_module(void) } AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "Silly MP3 Application"); - -- cgit v1.2.3