]> git.sesse.net Git - vlc/commitdiff
* On Win32 the DVD access plugin has to be explicitly requested. This
authorGildas Bazin <gbazin@videolan.org>
Tue, 21 May 2002 13:34:31 +0000 (13:34 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 21 May 2002 13:34:31 +0000 (13:34 +0000)
  avoids crashes when the input thread tries to open files as dvds.

plugins/dvd/dvd_access.c

index 61934c9767a47f29c41b0f6713277b0c28707dd3..6cbad86f89c89aeda386dd48986a469b189dc78a 100644 (file)
@@ -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 <stef@via.ecp.fr>
  *
@@ -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 )
     {