From: Gildas Bazin Date: Tue, 21 May 2002 13:34:31 +0000 (+0000) Subject: * On Win32 the DVD access plugin has to be explicitly requested. This X-Git-Tag: 0.4.0~18 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=26a3b9dd1b55bf70bd0228c49865b04248475139;p=vlc * On Win32 the DVD access plugin has to be explicitly requested. This avoids crashes when the input thread tries to open files as dvds. --- diff --git a/plugins/dvd/dvd_access.c b/plugins/dvd/dvd_access.c index 61934c9767..6cbad86f89 100644 --- a/plugins/dvd/dvd_access.c +++ b/plugins/dvd/dvd_access.c @@ -8,7 +8,7 @@ * -dvd_udf to find files ***************************************************************************** * Copyright (C) 1998-2001 VideoLAN - * $Id: dvd_access.c,v 1.18 2002/05/21 13:27:32 lool Exp $ + * $Id: dvd_access.c,v 1.19 2002/05/21 13:34:31 gbazin Exp $ * * Author: Stéphane Borel * @@ -641,9 +641,15 @@ static char * DVDParse( input_thread_t * p_input ) int i_chapter = 1; int i_angle = 1; int i; - + p_dvd = (thread_dvd_data_t*)(p_input->p_access_data); +#ifdef WIN32 + /* On Win32 we want the DVD access plugin to be explicitly requested, + * we end up with lots of problems otherwise */ + if( !p_input->psz_access || !*p_input->psz_access ) return NULL; +#endif + psz_parser = psz_device = strdup( p_input->psz_name ); if( !psz_parser ) {