diff options
author | Tim Champagne <tchamp@users.sourceforge.net> | 2003-06-09 01:54:11 +0000 |
---|---|---|
committer | Tim Champagne <tchamp@users.sourceforge.net> | 2003-06-09 01:54:11 +0000 |
commit | e61e7128b0b2f67e0ec15161c12f2ca0379a1406 (patch) | |
tree | a50c66cf26786a411941a1b397a5bf752ae34b4d /src | |
parent | 5277b0b92ec20df161b41384cb599ee28a107dc8 (diff) | |
download | xine-lib-e61e7128b0b2f67e0ec15161c12f2ca0379a1406.tar.gz xine-lib-e61e7128b0b2f67e0ec15161c12f2ca0379a1406.tar.bz2 |
This time for sure. The file desc was not being setup for auto-play. That should be fixed now.
CVS patchset: 5016
CVS date: 2003/06/09 01:54:11
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_cdda.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c index 4f192ebdc..8e7146ad8 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.28 2003/06/09 01:26:25 tchamp Exp $ + * $Id: input_cdda.c,v 1.29 2003/06/09 01:54:11 tchamp Exp $ */ #ifdef HAVE_CONFIG_H @@ -1927,7 +1927,7 @@ static void _cdda_free_cddb_info(cdda_input_plugin_t *this) { */ static int cdda_open(cdda_input_plugin_t *this_gen, - char *cdda_device, cdrom_toc *toc) { + char *cdda_device, cdrom_toc *toc, int *fdd) { int fd = -1; @@ -1935,6 +1935,8 @@ static int cdda_open(cdda_input_plugin_t *this_gen, #ifndef WIN32 + *fdd = -1; + if (this_gen) this_gen->fd = -1; @@ -1946,8 +1948,12 @@ static int cdda_open(cdda_input_plugin_t *this_gen, if (this_gen) this_gen->fd = fd; + *fdd = fd; + #else /* WIN32 */ + *fdd = -1; + if (this_gen) { this_gen->fd = -1; this_gen->h_device_handle = NULL; @@ -2293,7 +2299,7 @@ static int cdda_plugin_open (input_plugin_t *this_gen ) { if( this->net_fd == -1 ) { - if (cdda_open(this, cdda_device, &toc) == -1) { + if (cdda_open(this, cdda_device, &toc, &fd) == -1) { free_cdrom_toc(&toc); return 0; } @@ -2446,7 +2452,7 @@ static char ** cdda_class_get_autoplay_list (input_class_t *this_gen, #endif if (fd == -1) { - if (cdda_open(ip, this->cdda_device, &toc) == -1) { + if (cdda_open(ip, this->cdda_device, &toc, &fd) == -1) { return NULL; } } |