From 1b617775b4285d96f2eac4c6da7d12a93168b0b5 Mon Sep 17 00:00:00 2001 From: Stefan Holst Date: Wed, 1 Feb 2006 18:55:29 +0000 Subject: bugfix: prevent input_cdda from closing file descriptors like stdin while using autoplay feature CVS patchset: 7861 CVS date: 2006/02/01 18:55:29 --- src/input/input_cdda.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c index b28ec201d..6203f6eb8 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.81 2005/11/28 12:24:57 valtri Exp $ + * $Id: input_cdda.c,v 1.82 2006/02/01 18:55:29 holstsn Exp $ */ #ifdef HAVE_CONFIG_H @@ -2462,6 +2462,8 @@ static char ** cdda_class_get_autoplay_list (input_class_t *this_gen, * let's create a dummy instance in such a condition */ ip = (cdda_input_plugin_t *)xine_xmalloc(sizeof(cdda_input_plugin_t)); ip->stream = NULL; + ip->fd = -1; + ip->net_fd = -1; } #ifndef WIN32 -- cgit v1.2.3