summaryrefslogtreecommitdiff
path: root/main/file.c
diff options
context:
space:
mode:
authorMatthew Nicholson <mnicholson@digium.com>2008-11-25 00:19:55 +0000
committerMatthew Nicholson <mnicholson@digium.com>2008-11-25 00:19:55 +0000
commit69d85eaca9e8636c2af2dd9bd29e61d027d55c2c (patch)
treefa71d48464063456eece32ef134d63c619ef7c05 /main/file.c
parent17ed84ff0749450a9ed325a6a2a0e6069db04f9e (diff)
Fix compiling in dev mode.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/file.c b/main/file.c
index 79c5c1bf2..61d45fe1c 100644
--- a/main/file.c
+++ b/main/file.c
@@ -898,6 +898,7 @@ int ast_streamfile(struct ast_channel *chan, const char *filename, const char *p
struct ast_filestream *vfs=NULL;
char fmt[256];
int seekattempt;
+ int res;
fs = ast_openstream(chan, filename, preflang);
if (!fs) {
@@ -919,7 +920,6 @@ int ast_streamfile(struct ast_channel *chan, const char *filename, const char *p
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))