From a09762873602d11eda42986ee75695b7c3558c43 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sun, 23 Feb 2003 21:32:48 +0000 Subject: 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 --- src/xine-engine/load_plugins.c | 18 ++++++++++-------- 1 file 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); } } -- cgit v1.2.3