diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-03-11 14:50:06 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-03-11 14:50:06 +0000 |
commit | 982c52550f18958bffd3d3c78079ac9c537cfca3 (patch) | |
tree | 4f5f3ff07c3651c2ddc45f0332af498d8bac28e2 /include | |
parent | fcdadcac2626a3f1dc5f72ba9e6190c7a21bd349 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |