From 1a7721ded567c8b4626b81c340e19a5cc0cbd069 Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Sun, 6 Mar 2005 13:03:33 +0000 Subject: **BUGFIX** Check for plugin init failure CVS patchset: 7434 CVS date: 2005/03/06 13:03:33 --- src/xine-engine/load_plugins.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 28d511179..7a42c40bd 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -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.200 2005/02/13 21:21:06 tmattern Exp $ + * $Id: load_plugins.c,v 1.201 2005/03/06 13:03:33 jstembridge Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -751,9 +751,12 @@ static int _load_plugin_class(xine_t *this, && info->API == target->API && !strcasecmp(info->id, target->id) && info->version == target->version){ - inc_file_ref(node->file); - node->plugin_class = info->init(this, data); - return 1; + if ((node->plugin_class = info->init(this, data))) { + inc_file_ref(node->file); + return 1; + } else { + return 0; + } } info++; } -- cgit v1.2.3