[asterisk-commits] file: branch group/media_formats r408285 - /team/group/media_formats/apps/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 17 11:15:19 CST 2014
Author: file
Date: Mon Feb 17 11:15:17 2014
New Revision: 408285
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=408285
Log:
There is no reason for this code to be here. Echo does not need to muck with read/write format for no reason.
Modified:
team/group/media_formats/apps/app_echo.c
Modified: team/group/media_formats/apps/app_echo.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats/apps/app_echo.c?view=diff&rev=408285&r1=408284&r2=408285
==============================================================================
--- team/group/media_formats/apps/app_echo.c (original)
+++ team/group/media_formats/apps/app_echo.c Mon Feb 17 11:15:17 2014
@@ -58,11 +58,6 @@
static int echo_exec(struct ast_channel *chan, const char *data)
{
int res = -1;
- struct ast_format format;
-
- ast_best_codec(ast_channel_nativeformats(chan), &format);
- ast_set_write_format(chan, &format);
- ast_set_read_format(chan, &format);
while (ast_waitfor(chan, -1) > -1) {
struct ast_frame *f = ast_read(chan);
More information about the asterisk-commits
mailing list