]> git.sesse.net Git - vlc/commitdiff
Don't use "Track" for VCDX, "Entry" or "LID" should be used.
authorRocky Bernstein <rocky@videolan.org>
Sat, 16 Jul 2005 04:12:28 +0000 (04:12 +0000)
committerRocky Bernstein <rocky@videolan.org>
Sat, 16 Jul 2005 04:12:28 +0000 (04:12 +0000)
modules/gui/wxwindows/open.cpp

index 887293df8aff8c43ae643375288d4d3dc05634a5..091222d8f80f1bd78eb3e802f14cf810c4b6f7e4 100644 (file)
@@ -1377,12 +1377,28 @@ void OpenDialog::OnDiscProbe( wxCommandEvent& WXUNUSED(event) )
           CdIo_t *p_cdio = cdio_open (psz_device, DRIVER_UNKNOWN);
          disc_device->SetValue( wxL2U(psz_device) );
 
+#ifdef HAVE_VCDX
+         /* FIXME: get information from libvcdinfo. */
+         if (config_GetInt( p_intf, "vcdx-PBC"  )) 
+         {
+             /* Set largest LID. */;
+             ;
+         } 
+         else 
+         {
+             /* Set largest Entry */
+             ;
+         }
+         
+#else
+
          /* Set track range accurately if possible. */
          if (p_cdio) 
          {
              track_t i_last_track = cdio_get_last_track_num(p_cdio);
              disc_title->SetRange( 0, i_last_track-1 );  
          }
+#endif
          free(psz_device);
          cdio_destroy(p_cdio);
          break;