diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-08-29 16:24:37 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-08-29 16:24:37 +0000 |
commit | a4e8af9af20365b3ac5c3da76976b7bdcc4719d4 (patch) | |
tree | 3b7a14d067219905c5f1a4a01b1b6d03d936b283 | |
parent | d69c866f5f48550beedae8ad0eb6116dda76f791 (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: https://origsvn.digium.com/svn/asterisk/trunk@140433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/file.c | 3 |
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 */ } |