diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2003-02-23 21:32:48 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2003-02-23 21:32:48 +0000 |
commit | a09762873602d11eda42986ee75695b7c3558c43 (patch) | |
tree | 35d3f210a2db3dc3dd38ea88f2064f40d9d9c813 | |
parent | 0451671dcb9a683ece4eb54e2ed3132e4a33a296 (diff) | |
download | xine-lib-a09762873602d11eda42986ee75695b7c3558c43.tar.gz xine-lib-a09762873602d11eda42986ee75695b7c3558c43.tar.bz2 |
fix bug when deleting the first plugin from the list because plugin_class failed (next plugin was skipped then)
CVS patchset: 4268
CVS date: 2003/02/23 21:32:48
-rw-r--r-- | src/xine-engine/load_plugins.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index f1e8af1ab..d01d919a2 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2002 the xine project + * Copyright (C) 2000-2003 the xine project * * This file is part of xine, a free video player. * @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: load_plugins.c,v 1.140 2003/02/14 00:35:29 miguelfreitas Exp $ + * $Id: load_plugins.c,v 1.141 2003/02/23 21:32:48 guenter Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -470,12 +470,14 @@ static void _load_required_plugins(xine_t *this, xine_list_t *list) { /* in case of failure remove from list */ if( !node->plugin_class ) { - xine_list_delete_current(list); - node = xine_list_prev_content(list); /* delete advances, so get previous */ - } - } - - node = xine_list_next_content (list); + + xine_list_delete_current (list); + node = list->cur->content; + + } else + node = xine_list_next_content (list); + } else + node = xine_list_next_content (list); } } |