aboutsummaryrefslogtreecommitdiffstats
path: root/main/file.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-29 16:24:37 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-29 16:24:37 +0000
commit1c53b40b496418ccd93e270d070bbb252fdee215 (patch)
tree3b7a14d067219905c5f1a4a01b1b6d03d936b283 /main/file.c
parent57aadcafff863b2db480e089b3b8c97734583c2c (diff)
Allow for video files to be opened as well as
audio files. (closes issue #13372) Reported by: epicac Patches: 13372.patch uploaded by putnopvut (license 60) Tested by: epicac git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140433 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/file.c b/main/file.c
index 1bef768ba..2f1789481 100644
--- a/main/file.c
+++ b/main/file.c
@@ -379,7 +379,8 @@ static int ast_filehelper(const char *filename, const void *arg2, const char *fm
struct ast_filestream *s;
if ( !(chan->writeformat & f->format) &&
- !(f->format & AST_FORMAT_AUDIO_MASK && fmt)) {
+ !((f->format & AST_FORMAT_AUDIO_MASK && fmt) ||
+ (f->format & AST_FORMAT_VIDEO_MASK && fmt))) {
ast_free(fn);
continue; /* not a supported format */
}