From 9b8180d8207072f9ebd8b91abbda01f2ead91760 Mon Sep 17 00:00:00 2001 From: Tim Champagne Date: Mon, 9 Jun 2003 00:37:27 +0000 Subject: This should fix the SIGSEGV in the cdda input module but it will probably not fix the auto play feature. CVS patchset: 5014 CVS date: 2003/06/09 00:37:27 --- src/input/input_cdda.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c index c7a93a1bb..f29ed84a5 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.26 2003/05/20 20:40:29 tchamp Exp $ + * $Id: input_cdda.c,v 1.27 2003/06/09 00:37:27 tchamp Exp $ */ #ifdef HAVE_CONFIG_H @@ -2437,9 +2437,13 @@ static char ** cdda_class_get_autoplay_list (input_class_t *this_gen, #endif if (fd == -1) { - if (cdda_open(ip, ip->cdda_device, &toc) == -1) { - return NULL; + if (ip) { + if (cdda_open(ip, ip->cdda_device, &toc) == -1) { + return NULL; + } } + else + return NULL; } -- cgit v1.2.3