diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2004-01-07 22:21:40 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2004-01-07 22:21:40 +0000 |
commit | ffc98f0d9de67cb1447cbc5501ad2293d65d6d40 (patch) | |
tree | 960551477e6b9ac3a8b386880c703230f17b8874 /src/input/input_cdda.c | |
parent | c7dc2203f2da402c1999e10c99f174b44a6186cd (diff) | |
download | xine-lib-ffc98f0d9de67cb1447cbc5501ad2293d65d6d40.tar.gz xine-lib-ffc98f0d9de67cb1447cbc5501ad2293d65d6d40.tar.bz2 |
- use O_EXCL when opening the CD device so that we're sure no other application
will try and touch it
CVS patchset: 6009
CVS date: 2004/01/07 22:21:40
Diffstat (limited to 'src/input/input_cdda.c')
-rw-r--r-- | src/input/input_cdda.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c index e1bbe11d5..f91b3f99c 100644 --- a/src/input/input_cdda.c +++ b/src/input/input_cdda.c @@ -20,7 +20,7 @@ * Compact Disc Digital Audio (CDDA) Input Plugin * by Mike Melanson (melanson@pcisys.net) * - * $Id: input_cdda.c,v 1.41 2003/12/14 22:13:22 siggi Exp $ + * $Id: input_cdda.c,v 1.42 2004/01/07 22:21:40 hadess Exp $ */ #ifdef HAVE_CONFIG_H @@ -50,9 +50,9 @@ #define LOG_MODULE "input_cdda" #define LOG_VERBOSE -/* + #define LOG -*/ + #include "xine_internal.h" #include "xineutils.h" @@ -1406,7 +1406,7 @@ static char *_cdda_cddb_get_default_location(void) { * Small sighandler ;-) */ static void die(int signal) { - abort(); + //abort(); } /* @@ -1983,7 +1983,7 @@ static int cdda_open(cdda_input_plugin_t *this_gen, if (this_gen) this_gen->fd = -1; - fd = open (cdda_device, O_RDONLY); + fd = open (cdda_device, O_RDONLY|O_EXCL); if (fd == -1) { return -1; } |