[svn-commits] mnicholson: branch group/res_fax r238138 - /team/group/res_fax/res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 6 13:16:26 CST 2010


Author: mnicholson
Date: Wed Jan  6 13:16:22 2010
New Revision: 238138

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=238138
Log:
If we don't get a frame from the fax stack, return a null frame instead of NULL.

Modified:
    team/group/res_fax/res/res_fax_spandsp.c

Modified: team/group/res_fax/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/res_fax/res/res_fax_spandsp.c?view=diff&rev=238138&r1=238137&r2=238138
==============================================================================
--- team/group/res_fax/res/res_fax_spandsp.c (original)
+++ team/group/res_fax/res/res_fax_spandsp.c Wed Jan  6 13:16:22 2010
@@ -432,6 +432,8 @@
 			f->samples = samples;
 			AST_FRAME_SET_BUFFER(f, buffer, AST_FRIENDLY_OFFSET, samples * sizeof(int16_t));
 			return ast_frisolate(f);
+		} else {
+			return &ast_null_frame;
 		}
 	}
 




More information about the svn-commits mailing list