summaryrefslogtreecommitdiff
path: root/src/input/input_rtp.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/input/input_rtp.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/input/input_rtp.c')
-rw-r--r--src/input/input_rtp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input/input_rtp.c b/src/input/input_rtp.c
index 114d35e61..3ae00d017 100644
--- a/src/input/input_rtp.c
+++ b/src/input/input_rtp.c
@@ -165,7 +165,7 @@ static int host_connect_attempt(struct in_addr ia, int port, xine_t *xine) {
/* datagram socket */
if (bind(s, (struct sockaddr *)&sin, sizeof(sin))) {
LOG_MSG_STDERR(xine, _("bind(): %s.\n"), strerror(errno));
- exit(1);
+ abort();
}
/* multicast ? */
if ((ntohl(sin.sin_addr.s_addr) >> 28) == 0xe) {
@@ -184,7 +184,7 @@ static int host_connect_attempt(struct in_addr ia, int port, xine_t *xine) {
if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP,&mreqn,sizeof(mreqn))) {
LOG_MSG_STDERR(xine, _("setsockopt(IP_ADD_MEMBERSHIP) failed (multicast kernel?): %s.\n"),
strerror(errno));
- exit(1);
+ abort();
}
}
@@ -338,7 +338,7 @@ static int rtp_plugin_open (input_plugin_t *this_gen, char *mrl ) {
input_plugin_read_loop, (void *)&this)) != 0) {
LOG_MSG_STDERR(this->xine, _("input_rtp: can't create new thread (%s)\n"),
strerror(err));
- exit (1);
+ abort();
}
pthread_attr_destroy(&thread_attrs);
@@ -528,12 +528,12 @@ input_plugin_t *init_input_plugin (int iface, xine_t *xine) {
input_buffer_t *buf = xine_xmalloc(sizeof(input_buffer_t));
if (!buf) {
LOG_MSG_STDERR(xine, _("unable to allocate input buffer.\n"));
- exit(1);
+ abort();
}
buf->buf = xine_xmalloc(IBUFFER_SIZE);
if (!buf->buf) {
LOG_MSG_STDERR(xine, _("unable to allocate input buffer.\n"));
- exit(1);
+ abort();
}
buf->next = this->free_buffers;
this->free_buffers = buf;