From 982c52550f18958bffd3d3c78079ac9c537cfca3 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 11 Mar 2009 14:50:06 +0000 Subject: Keep transcoders on a list in registration order. This fixes a bug where it was possible for there to be a transcoder in position "1" but not in position "0" if a transcoder hardware driver was loaded, unloaded, and reloaded again without also reloading dahdi_transcode. The result is that codec_dahdi fails to enumerate all the transcoders in the system. (closes issue #14627) Reported by: xblurone git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6114 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- include/dahdi/kernel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index ef304d9..f5d335b 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -690,8 +690,8 @@ dahdi_tc_clear_data_waiting(struct dahdi_transcoder_channel *dtc) { } struct dahdi_transcoder { - struct list_head node; - int pos; + struct list_head active_list_node; + struct list_head registration_list_node; char name[80]; int numchannels; unsigned int srcfmts; -- cgit v1.2.3