[asterisk-commits] mmichelson: trunk r140433 - /trunk/main/file.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 29 11:24:37 CDT 2008


Author: mmichelson
Date: Fri Aug 29 11:24:37 2008
New Revision: 140433

URL: http://svn.digium.com/view/asterisk?view=rev&rev=140433
Log:
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


Modified:
    trunk/main/file.c

Modified: trunk/main/file.c
URL: http://svn.digium.com/view/asterisk/trunk/main/file.c?view=diff&rev=140433&r1=140432&r2=140433
==============================================================================
--- trunk/main/file.c (original)
+++ trunk/main/file.c Fri Aug 29 11:24:37 2008
@@ -379,7 +379,8 @@
 				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 */
 				}




More information about the asterisk-commits mailing list