summaryrefslogtreecommitdiff
path: root/src/xine-engine/load_plugins.c
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-04-29 23:31:59 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-04-29 23:31:59 +0000
commit0ec1fddf7f2eaf8eb29123d79e3462e723a37c1d (patch)
treef421f82664a92fb2568fdbd76c13a31d4db6f5b7 /src/xine-engine/load_plugins.c
parent7bfed2df7a422912d295348e100c73e8ee388216 (diff)
downloadxine-lib-0ec1fddf7f2eaf8eb29123d79e3462e723a37c1d.tar.gz
xine-lib-0ec1fddf7f2eaf8eb29123d79e3462e723a37c1d.tar.bz2
Replace all exit(1) with abort().
xine-lib should really never do an exit or abort, but instead pass back nice error values to the calling application, but until that happens, use abort() as that is tracable with gdb, whereas exit(1) is not backtraceable. CVS patchset: 1811 CVS date: 2002/04/29 23:31:59
Diffstat (limited to 'src/xine-engine/load_plugins.c')
-rw-r--r--src/xine-engine/load_plugins.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c
index 4b95ca6cc..6108d83da 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.75 2002/04/23 15:45:26 esnel Exp $
+ * $Id: load_plugins.c,v 1.76 2002/04/29 23:32:00 jcdutton Exp $
*
*
* Load input/demux/audio_out/video_out/codec plugins
@@ -77,7 +77,7 @@ static void segv_handler (int hubba) {
printf ("\nload_plugins: Initialization of plugin '%s' failed (segmentation fault).\n",plugin_name);
printf ("load_plugins: You probably need to remove the offending file.\n");
printf ("load_plugins: (This error is usually due an incorrect plugin version)\n");
- exit(1);
+ abort();
}
static void install_segv_handler(void){
@@ -100,7 +100,7 @@ void load_demux_plugins (xine_t *this,
if (this == NULL || config == NULL) {
printf (_("%s(%s@%d): parameter should be non null, exiting\n"),
__FILE__, __XINE_FUNCTION__, __LINE__);
- exit(1);
+ abort();
}
this->num_demuxer_plugins = 0;
@@ -160,7 +160,7 @@ void load_demux_plugins (xine_t *this,
if(this->num_demuxer_plugins > DEMUXER_PLUGIN_MAX) {
printf ( _("load_plugins: too many demux plugins installed, exiting.\n"));
- exit(1);
+ abort();
}
}
}
@@ -325,7 +325,7 @@ void load_input_plugins (xine_t *this,
if(this->num_input_plugins > INPUT_PLUGIN_MAX) {
printf (_("%s(%d): too many input plugins installed, "
"exiting.\n"), __FILE__, __LINE__);
- exit(1);
+ abort();
}
}
}
@@ -338,7 +338,7 @@ void load_input_plugins (xine_t *this,
if (this->num_input_plugins == 0) {
printf (_("load_plugins: no input plugins found in %s! - "
"Did you install xine correctly??\n"), XINE_PLUGINDIR);
- exit (1);
+ abort();
}
}
@@ -459,7 +459,7 @@ void load_decoder_plugins (xine_t *this,
if(this == NULL || config == NULL) {
printf ( _("%s(%s@%d): parameter should be non null, exiting\n"),
__FILE__, __XINE_FUNCTION__, __LINE__);
- exit(1);
+ abort();
}
/*