[asterisk-commits] mnicholson: trunk r158925 - /trunk/main/file.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 24 18:19:55 CST 2008


Author: mnicholson
Date: Mon Nov 24 18:19:55 2008
New Revision: 158925

URL: http://svn.digium.com/view/asterisk?view=rev&rev=158925
Log:
Fix compiling in dev mode.

Modified:
    trunk/main/file.c

Modified: trunk/main/file.c
URL: http://svn.digium.com/view/asterisk/trunk/main/file.c?view=diff&rev=158925&r1=158924&r2=158925
==============================================================================
--- trunk/main/file.c (original)
+++ trunk/main/file.c Mon Nov 24 18:19:55 2008
@@ -898,6 +898,7 @@
 	struct ast_filestream *vfs=NULL;
 	char fmt[256];
 	int seekattempt;
+	int res;
 
 	fs = ast_openstream(chan, filename, preflang);
 	if (!fs) {
@@ -919,7 +920,6 @@
 		ast_debug(1, "Ooh, found a video stream, too, format %s\n", ast_getformatname(vfs->fmt->format));
 	}
 
-	int res;
 	if (ast_test_flag(chan, AST_FLAG_MASQ_NOSTREAM))
 		fs->orig_chan_name = ast_strdup(chan->name);
 	if (ast_applystream(chan, fs))




More information about the asterisk-commits mailing list