[asterisk-commits] sruffell: branch sruffell/asterisk-1.4-transcoder r157037 - /team/sruffell/as...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 14 17:16:00 CST 2008


Author: sruffell
Date: Fri Nov 14 17:16:00 2008
New Revision: 157037

URL: http://svn.digium.com/view/asterisk?view=rev&rev=157037
Log:
still more logic errors.

Modified:
    team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c

Modified: team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c
URL: http://svn.digium.com/view/asterisk/team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c?view=diff&rev=157037&r1=157036&r2=157037
==============================================================================
--- team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c (original)
+++ team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c Fri Nov 14 17:16:00 2008
@@ -179,10 +179,13 @@
 			write_size = f->datalen;
 			res = write(ztp->fd, f->data, f->datalen); 
 		}
-		if ((-1 == res) && (option_verbose > 3)) {
-			ast_log(LOG_ERROR, "Failed to write to transcoder: %s\n", strerror(errno));
-		} else if (write_size != res) {
-			ast_log(LOG_ERROR, "Requested write of %d bytes, but only wrote %d bytes.\n", f->datalen, res);
+		if (option_verbose > 3) {
+			if (-1 == res) {
+				ast_log(LOG_ERROR, "Failed to write to transcoder: %s\n", strerror(errno));
+			} 
+			if (write_size != res) {
+				ast_log(LOG_ERROR, "Requested write of %d bytes, but only wrote %d bytes.\n", f->datalen, res);
+			}
 		}
 		res = -1;
 		pvt->samples += f->samples;




More information about the asterisk-commits mailing list