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
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 */
}