[svn-commits] branch group/new_loader_completion r35768 - /team/group/new_loader_completion...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jun 23 16:54:00 MST 2006


Author: kpfleming
Date: Fri Jun 23 18:54:00 2006
New Revision: 35768

URL: http://svn.digium.com/view/asterisk?rev=35768&view=rev
Log:
update for new loader and translator API

Modified:
    team/group/new_loader_completion/codecs/codec_zap.c

Modified: team/group/new_loader_completion/codecs/codec_zap.c
URL: http://svn.digium.com/view/asterisk/team/group/new_loader_completion/codecs/codec_zap.c?rev=35768&r1=35767&r2=35768&view=diff
==============================================================================
--- team/group/new_loader_completion/codecs/codec_zap.c (original)
+++ team/group/new_loader_completion/codecs/codec_zap.c Fri Jun 23 18:54:00 2006
@@ -222,7 +222,7 @@
 	return &f;
 }
 
-static int register_translator(int dst, int src, void *mod)
+static int register_translator(int dst, int src)
 {
 	struct translator *zt;
 	int res;
@@ -242,7 +242,7 @@
 	zt->t.useplc = global_useplc;
 	zt->t.buf_size = BUFFER_SAMPLES * 2;
 	zt->t.desc_size = sizeof(struct pvt);
-	if ((res = ast_register_translator(&zt->t, mod))) {
+	if ((res = ast_register_translator(&zt->t))) {
 		free(zt);
 		return -1;
 	}
@@ -325,13 +325,13 @@
 			if (global_format_map.map[dst][src])
 				continue;
 
-			if (!register_translator(dst, src, mod))
+			if (!register_translator(dst, src))
 				map->map[dst][src] = 1;
 		}
 	}
 }
 
-static int find_transcoders()
+static int find_transcoders(void)
 {
 	struct zt_transcode_info info = { 0, };
 	struct format_map map = { { { 0 } } };



More information about the svn-commits mailing list