mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Merged revisions 140433 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r140433 | mmichelson | 2008-08-29 11:24:37 -0500 (Fri, 29 Aug 2008) | 10 lines 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/branches/1.6.1@140435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user