summaryrefslogtreecommitdiff
path: root/src/xine-engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-engine')
-rw-r--r--src/xine-engine/audio_decoder.c4
-rw-r--r--src/xine-engine/audio_out.c4
-rw-r--r--src/xine-engine/configfile.c8
-rw-r--r--src/xine-engine/load_plugins.c14
-rw-r--r--src/xine-engine/video_decoder.c4
-rw-r--r--src/xine-engine/video_out.c4
-rw-r--r--src/xine-engine/xine.c4
7 files changed, 23 insertions, 19 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c
index d499e30bd..4a137b2df 100644
--- a/src/xine-engine/audio_decoder.c
+++ b/src/xine-engine/audio_decoder.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: audio_decoder.c,v 1.71 2002/04/14 00:24:45 guenter Exp $
+ * $Id: audio_decoder.c,v 1.72 2002/04/29 23:32:00 jcdutton Exp $
*
*
* functions that implement audio decoding
@@ -285,7 +285,7 @@ void audio_decoder_init (xine_t *this) {
&pth_attrs, audio_decoder_loop, this)) != 0) {
fprintf (stderr, "audio_decoder: can't create new thread (%s)\n",
strerror(err));
- exit (1);
+ abort();
}
}
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index dec239ab3..12f2bbf9c 100644
--- a/src/xine-engine/audio_out.c
+++ b/src/xine-engine/audio_out.c
@@ -17,7 +17,7 @@
* along with self program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_out.c,v 1.52 2002/04/14 00:24:45 guenter Exp $
+ * $Id: audio_out.c,v 1.53 2002/04/29 23:32:00 jcdutton Exp $
*
* 22-8-2001 James imported some useful AC3 sections from the previous alsa driver.
* (c) 2001 Andy Lo A Foe <andy@alsaplayer.org>
@@ -490,7 +490,7 @@ static int ao_open(ao_instance_t *this,
printf ("audio_out: can't create thread (%s)\n", strerror(err));
printf ("audio_out: sorry, this should not happen. please restart xine.\n");
- exit(1);
+ abort();
} else
printf ("audio_out: thread created\n");
diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c
index a238c8dda..dc43f4205 100644
--- a/src/xine-engine/configfile.c
+++ b/src/xine-engine/configfile.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: configfile.c,v 1.21 2002/04/27 23:00:40 cvogler Exp $
+ * $Id: configfile.c,v 1.22 2002/04/29 23:32:00 jcdutton Exp $
*
* config file management - implementation
*
@@ -644,7 +644,7 @@ config_values_t *xine_config_file_init (char *filename) {
} else {
printf ("configfile: could not allocate config object\n");
- exit (1);
+ abort();
}
this->register_string = config_file_register_string;
@@ -667,6 +667,10 @@ config_values_t *xine_config_file_init (char *filename) {
/*
* $Log: configfile.c,v $
+ * Revision 1.22 2002/04/29 23:32:00 jcdutton
+ * 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.
+ *
* Revision 1.21 2002/04/27 23:00:40 cvogler
* Add function to unregister configfile callback.
*
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();
}
/*
diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c
index eae3d1574..31cff4704 100644
--- a/src/xine-engine/video_decoder.c
+++ b/src/xine-engine/video_decoder.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: video_decoder.c,v 1.83 2002/04/16 12:27:20 jcdutton Exp $
+ * $Id: video_decoder.c,v 1.84 2002/04/29 23:32:00 jcdutton Exp $
*
*/
@@ -294,7 +294,7 @@ void video_decoder_init (xine_t *this) {
&pth_attrs, video_decoder_loop, this)) != 0) {
fprintf (stderr, "video_decoder: can't create new thread (%s)\n",
strerror(err));
- exit (1);
+ abort();
}
this->video_in_discontinuity = 0;
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c
index 43ccff317..40b98ad93 100644
--- a/src/xine-engine/video_out.c
+++ b/src/xine-engine/video_out.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: video_out.c,v 1.93 2002/04/09 03:38:01 miguelfreitas Exp $
+ * $Id: video_out.c,v 1.94 2002/04/29 23:32:00 jcdutton Exp $
*
* frame allocation / queuing / scheduling / output functions
*/
@@ -1003,7 +1003,7 @@ vo_instance_t *vo_new_instance (vo_driver_t *driver, xine_t *xine) {
strerror(err));
/* FIXME: how does this happen ? */
printf (_("video_out: sorry, this should not happen. please restart xine.\n"));
- exit(1);
+ abort();
} else
printf ("video_out: thread created\n");
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index ab2cd4d25..7f0c21a8e 100644
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.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: xine.c,v 1.121 2002/04/28 17:39:36 guenter Exp $
+ * $Id: xine.c,v 1.122 2002/04/29 23:32:00 jcdutton Exp $
*
* top-level xine functions
*
@@ -88,7 +88,7 @@ void xine_notify_stream_finished (xine_t *this) {
NULL, xine_notify_stream_finished_thread, this)) != 0) {
printf (_("xine_notify_stream_finished: can't create new thread (%s)\n"),
strerror(err));
- exit (1);
+ abort();
}
}