Commit b3521ade authored by Rocky Bernstein's avatar Rocky Bernstein
Browse files

Set entries/lids for VCDs when we have an okay libvcdinfo.

parent 90d3d349
...@@ -34,8 +34,9 @@ ...@@ -34,8 +34,9 @@
#include <cdio/cdio.h> #include <cdio/cdio.h>
#include <cdio/cd_types.h> #include <cdio/cd_types.h>
#endif /* HAVE_LIBCDIO */ #endif /* HAVE_LIBCDIO */
#if defined(HAVE_VCDINFO) && LIBVCD_VERSION_NUM > 23 #ifdef HAVE_VCDINFO
#include <libvcd/info.h> #include <libvcd/info.h>
#include <libvcd/version.h>
#endif /* HAVE_VCDINFO */ #endif /* HAVE_VCDINFO */
#include <wx/combobox.h> #include <wx/combobox.h>
...@@ -1398,7 +1399,8 @@ void OpenDialog::OnDiscProbe( wxCommandEvent& WXUNUSED(event) ) ...@@ -1398,7 +1399,8 @@ void OpenDialog::OnDiscProbe( wxCommandEvent& WXUNUSED(event) )
else else
{ {
/* Set largest Entry */ /* Set largest Entry */
disc_title->SetRange( 0, vcdinfo_get_num_entries(p_vcdinfo) ); disc_title->SetRange( 0,
vcdinfo_get_num_entries(p_vcdinfo)-1 );
} }
vcdinfo_close(p_vcdinfo); vcdinfo_close(p_vcdinfo);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment