VCD enabled for BSD/OS
Steven M. Schultz
sms at TO.GD-ES.COM
Wed Oct 31 00:35:52 CET 2001
Greetings -
I saw that there was VCD capability now in 'vlc' so I took a look
at what was involved in enabling it for BSD/OS.
Only two minor modifications (one in configure.in and one in
linux_cdrom_tools.h
The '#if' change to linux_cdrom_tools.h is longer than expected because
of the multiple ways 'dvd.h' can be detected (and the VCD structures
are defined in dvd.h) - if the extras/BSDI_dvdioctl is built then
that is one define, if 'libdvd' and 'dvd.h' are already present on
the system then that is another define.
I thought about a 'HAVE_VCD_IN_DVD_H' type of thing but was not sure
how to do that.
Here are the suggested changes to enable VCD playing using the
BSDI_dvdioctl (or locally installed 'libdvd') library
Steven Schultz
sms at to.gd-es.com
--------------------------cut here---------------------
--- ./plugins/vcd/linux_cdrom_tools.h.dist Mon Oct 22 20:17:49 2001
+++ ./plugins/vcd/linux_cdrom_tools.h Tue Oct 30 14:26:33 2001
@@ -20,7 +20,14 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
+#if defined(HAVE_BSD_DVD_STRUCT) || defined(DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H) || defined(DVD_STRUCT_IN_DVD_H)
+#include <dvd.h>
+#endif
+
+#ifdef __linux__
#include <linux/cdrom.h>
+#endif
+
/* where the data start on a VCD sector */
#define VCD_DATA_START 24
/* size of the availablr data on a VCD sector */
--- ./configure.in.dist Tue Oct 30 13:57:19 2001
+++ ./configure.in Tue Oct 30 14:09:52 2001
@@ -672,6 +672,11 @@
])
fi
+if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
+then
+ BUILTINS="${BUILTINS} vcd"
+fi
+
dnl
dnl dummy plugin
dnl
More information about the vlc
mailing list