[svn-commits] kpfleming: branch 1.4 r46712 - /branches/1.4/main/translate.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Oct 31 14:25:20 MST 2006


Author: kpfleming
Date: Tue Oct 31 15:25:20 2006
New Revision: 46712

URL: http://svn.digium.com/view/asterisk?rev=46712&view=rev
Log:
let's set the seen flag early enough to actually make a difference...

Modified:
    branches/1.4/main/translate.c

Modified: branches/1.4/main/translate.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/translate.c?rev=46712&r1=46711&r2=46712&view=diff
==============================================================================
--- branches/1.4/main/translate.c (original)
+++ branches/1.4/main/translate.c Tue Oct 31 15:25:20 2006
@@ -651,6 +651,8 @@
 	}
 
 	if (!t->seen) {
+		t->seen = 1;
+
 		if (!t->buf_size) {
 			ast_log(LOG_WARNING, "empty buf size, you need to supply one\n");
 			return -1;
@@ -691,8 +693,6 @@
 			t->frameout = default_frameout;
   
 		calc_cost(t, 1);
-
-		t->seen = 1;
 	}
 
 	if (option_verbose > 1) {



More information about the svn-commits mailing list