[asterisk-commits] oej: branch 1.8 r286270 - in /branches/1.8: ./ main/file.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Sep 11 12:09:26 CDT 2010


Author: oej
Date: Sat Sep 11 12:09:22 2010
New Revision: 286270

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=286270
Log:
Merged revisions 286268 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r286268 | oej | 2010-09-11 19:05:16 +0200 (Lör, 11 Sep 2010) | 11 lines
  
  Merged revisions 286267 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r286267 | oej | 2010-09-11 18:59:20 +0200 (Lör, 11 Sep 2010) | 4 lines
    
    Handle error response when we can't make file compatible
    
    Review: https://reviewboard.asterisk.org/r/911/
  ........
................

Modified:
    branches/1.8/   (props changed)
    branches/1.8/main/file.c

Propchange: branches/1.8/
------------------------------------------------------------------------------
Binary property 'branch-1.6.2-merged' - no diff available.

Modified: branches/1.8/main/file.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/file.c?view=diff&rev=286270&r1=286269&r2=286270
==============================================================================
--- branches/1.8/main/file.c (original)
+++ branches/1.8/main/file.c Sat Sep 11 12:09:22 2010
@@ -651,7 +651,10 @@
 	chan->oldwriteformat = chan->writeformat;
 	/* Set the channel to a format we can work with */
 	res = ast_set_write_format(chan, fmts);
- 	res = ast_filehelper(buf, chan, NULL, ACTION_OPEN);
+	if (res == -1) {	/* No format available that works with this channel */
+		return NULL;
+	}
+	res = ast_filehelper(buf, chan, NULL, ACTION_OPEN);
 	if (res >= 0)
 		return chan->stream;
 	return NULL;




More information about the asterisk-commits mailing list