summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input/input_bluray.c13
-rw-r--r--src/input/input_vcd.c2
2 files changed, 13 insertions, 2 deletions
diff --git a/src/input/input_bluray.c b/src/input/input_bluray.c
index a05307a4f..c9152545e 100644
--- a/src/input/input_bluray.c
+++ b/src/input/input_bluray.c
@@ -74,6 +74,15 @@
#define MIN_TITLE_LENGTH 180
+#define BLURAY_MNT_PATH "/mnt/bluray"
+#if defined(__sun)
+#define BLURAY_PATH "/vol/dev/aliases/cdrom0"
+#elif defined(__OpenBSD__)
+#define BLURAY_PATH "/dev/rcd0c"
+#else
+#define BLURAY_PATH "/dev/dvd"
+#endif
+
/* */
typedef struct {
@@ -1644,13 +1653,13 @@ static void *bluray_init_plugin (xine_t *xine, void *data)
this->mountpoint =
config->register_filename(config, "media.bluray.mountpoint",
- "/mnt/bluray", XINE_CONFIG_STRING_IS_DIRECTORY_NAME,
+ BLURAY_MNT_PATH, XINE_CONFIG_STRING_IS_DIRECTORY_NAME,
_("BluRay mount point"),
_("Default mount location for BluRay discs."),
0, mountpoint_change_cb, (void *) this);
this->device =
config->register_filename(config, "media.bluray.device",
- "/dev/dvd", XINE_CONFIG_STRING_IS_DIRECTORY_NAME,
+ BLURAY_PATH, XINE_CONFIG_STRING_IS_DIRECTORY_NAME,
_("device used for BluRay playback"),
_("The path to the device "
"which you intend to use for playing BluRy discs."),
diff --git a/src/input/input_vcd.c b/src/input/input_vcd.c
index 3f31c7c9d..8b1a0fcee 100644
--- a/src/input/input_vcd.c
+++ b/src/input/input_vcd.c
@@ -53,6 +53,8 @@
#if defined(__sun)
#define CDROM "/vol/dev/aliases/cdrom0"
+#elif defined(__OpenBSD__)
+#define CDROM "/dev/rcd0c"
#else
/* for FreeBSD make a link to the right devnode, like /dev/acd0c */
#define CDROM "/dev/cdrom"