[vlc-commits] commit: Set CD_DEVICE and DVD_DEVICE to device names appropriate for OpenBSD. ( Brad Smith )

git at videolan.org git at videolan.org
Thu Aug 12 12:00:33 CEST 2010


vlc/vlc-1.1 | branch: master | Brad Smith <brad at comstyle.com> | Mon Aug  9 18:11:16 2010 -0400| [05f9a4cedf3b8678b7c684aecdf221a56f19af77] | committer: Jean-Baptiste Kempf 

Set CD_DEVICE and DVD_DEVICE to device names appropriate for OpenBSD.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 9adb17b9449595217b9e9a4c7e3c0c4bd8f2c1e3)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=05f9a4cedf3b8678b7c684aecdf221a56f19af77
---

 include/vlc_config.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/vlc_config.h b/include/vlc_config.h
index e161f5f..ccbf103 100644
--- a/include/vlc_config.h
+++ b/include/vlc_config.h
@@ -80,8 +80,13 @@
 
 /* DVD and VCD devices */
 #if !defined( WIN32 ) && !defined( UNDER_CE )
+#if defined(__OpenBSD__)
+#   define CD_DEVICE      "/dev/cd0c"
+#   define DVD_DEVICE     "/dev/cd0c"
+#else
 #   define CD_DEVICE      "/dev/cdrom"
 #   define DVD_DEVICE     "/dev/dvd"
+#endif
 #else
 #   define CD_DEVICE      "D:"
 #   define DVD_DEVICE     NULL



More information about the vlc-commits mailing list