]> git.sesse.net Git - vlc/commitdiff
-Fixed chapter selection at startup.
authorStéphane Borel <stef@videolan.org>
Fri, 15 Mar 2002 00:57:16 +0000 (00:57 +0000)
committerStéphane Borel <stef@videolan.org>
Fri, 15 Mar 2002 00:57:16 +0000 (00:57 +0000)
plugins/dvd/dvd_access.c

index db250de87af1db5104c743571a7be32197fcd3ad..c7765500dc1da2d9342ce5c303a35f0263767cb0 100644 (file)
@@ -8,7 +8,7 @@
  *  -dvd_udf to find files
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: dvd_access.c,v 1.6 2002/03/11 07:23:09 gbazin Exp $
+ * $Id: dvd_access.c,v 1.7 2002/03/15 00:57:16 stef Exp $
  *
  * Author: Stéphane Borel <stef@via.ecp.fr>
  *
@@ -226,9 +226,9 @@ static int DVDOpen( struct input_thread_s *p_input )
 
     p_area = p_input->stream.pp_areas[p_dvd->i_title];
     
-    p_dvd->i_chapter = p_dvd->i_chapter <= p_area->i_part_nb ?
-                       p_dvd->i_chapter : 1;
-    p_area->i_part = p_dvd->i_chapter;
+    p_area->i_part = p_dvd->i_chapter <= p_area->i_part_nb ?
+                     p_dvd->i_chapter : 1;
+    p_dvd->i_chapter = 1;
     
     p_dvd->b_new_chapter = 0;
     p_dvd->i_audio_nb = 0;