]> git.sesse.net Git - vlc/commitdiff
Correct multi-default selection. But we need vcdimager 0.71 CVS for
authorRocky Bernstein <rocky@videolan.org>
Sun, 28 Mar 2004 20:17:49 +0000 (20:17 +0000)
committerRocky Bernstein <rocky@videolan.org>
Sun, 28 Mar 2004 20:17:49 +0000 (20:17 +0000)
this.  (But most poeple won't notice the improvement since video
switching is broken.)

configure.ac
modules/access/vcdx/vcdplayer.c
modules/access/vcdx/vcdplayer.h

index df24bd324257371fa90e51549d644bbca02f6335..f7b6a30f082d1fd7f85acdd375258fb2fb104566 100644 (file)
@@ -1575,7 +1575,7 @@ then
 
   if test "${enable_vcdx}" != "no"
   then
-    PKG_CHECK_MODULES(VCDINFO, libvcdinfo >= 0.7.20,
+    PKG_CHECK_MODULES(VCDINFO, libvcdinfo >= 0.7.21,
      [enable_vcd="no"
       AC_DEFINE(HAVE_VCDX, [], 
       [Define for the VCD plugin using libcdio/libvcdinfo])
index 15ce3223e146fb06cbd340107e4df25ae0b73d88..302ced303a69e5ca719f3a15bd534f28c52f78aa 100644 (file)
@@ -307,6 +307,13 @@ vcdplayer_play_default( input_thread_t * p_input )
 
   vcdinfo_itemid_t   itemid;
 
+  if (!p_vcd) {
+    dbg_print( (INPUT_DBG_CALL|INPUT_DBG_PBC), 
+              "null p_vcd" );
+    return VLC_EGENERIC;
+  }
+  
+
   dbg_print( (INPUT_DBG_CALL|INPUT_DBG_PBC), 
             "current: %d" , p_vcd->play_item.num);
 
@@ -315,7 +322,7 @@ vcdplayer_play_default( input_thread_t * p_input )
   if  (vcdplayer_pbc_is_on(p_vcd)) {
 
     lid_t lid=vcdinfo_get_multi_default_lid(p_vcd->vcd, p_vcd->cur_lid,
-                                           itemid.num);
+                                           p_vcd->cur_lsn);
 
     if (VCDINFO_INVALID_LID != lid) {
       itemid.num  = lid;
index f0e9dbd8fb365907ee3b6d640e7ed11db0ea0330..d986335800b306c646f2fb56fd0caa07ec9d2060 100644 (file)
@@ -1,6 +1,6 @@
 /*****************************************************************************
- * Copyright (C) 2003 Rocky Bernstein (for VideoLAN)
- * $Id: vcdplayer.h,v 1.5 2004/01/03 20:43:24 rocky Exp $
+ * Copyright (C) 2003, 2004 Rocky Bernstein (for VideoLAN)
+ * $Id$
  *
  * Authors: Rocky Bernstein <rocky@panix.com> 
  *
@@ -76,7 +76,7 @@ typedef struct thread_vcd_data_s
   int          cur_lid;                 /* LID that play item is in. Implies 
                                            PBC is on. VCDPLAYER_BAD_ENTRY if 
                                            not none or not in PBC */
-  PsdListDescriptor pxd;                /* If PBC is on, the relevant 
+  PsdListDescriptor_t pxd;              /* If PBC is on, the relevant 
                                            PSD/PLD */
   int          pdi;                     /* current pld index of pxd. -1 if 
                                            no index*/