diff options
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/input_dvd.c | 8 | ||||
-rw-r--r-- | src/input/input_stdin_fifo.c | 10 | ||||
-rw-r--r-- | src/input/input_vcd.c | 15 |
3 files changed, 30 insertions, 3 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index 158ded44f..d7fcc6473 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_dvd.c,v 1.5 2001/05/07 01:31:44 f1rmb Exp $ + * $Id: input_dvd.c,v 1.6 2001/05/07 02:25:00 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -30,6 +30,7 @@ #if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) # include <sys/cdio.h> #elif defined(__linux__) +#include <linux/config.h> /* Check for DEVFS */ # include <linux/cdrom.h> #else # error "Need the DVD ioctls" @@ -48,8 +49,13 @@ static uint32_t xine_debug; +#ifdef CONFIG_DEVFS_FS +#define DVD "/dev/cdroms/dvd" +#define RDVD "/dev/cdroms/rdvd" +#else #define DVD "/dev/dvd" #define RDVD "/dev/rdvd" +#endif typedef struct { diff --git a/src/input/input_stdin_fifo.c b/src/input/input_stdin_fifo.c index ebe737cc7..f292c065a 100644 --- a/src/input/input_stdin_fifo.c +++ b/src/input/input_stdin_fifo.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_stdin_fifo.c,v 1.4 2001/05/07 01:31:44 f1rmb Exp $ + * $Id: input_stdin_fifo.c,v 1.5 2001/05/07 02:25:00 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -32,6 +32,10 @@ #include <sys/stat.h> #include <errno.h> +#if defined(__linux__) +#include <linux/config.h> /* Check for DEVFS */ +#endif + #include "xine_internal.h" #include "monitor.h" #include "input_plugin.h" @@ -60,7 +64,11 @@ static int stdin_plugin_open(input_plugin_t *this_gen, char *mrl) { if(!strncasecmp(mrl, "stdin:", 6) || !strncmp(mrl, "-", 1)) { +#ifdef CONFIG_DEVFS_FS + filename = "/dev/vc/stdin"; +#else filename = "/dev/stdin"; +#endif } else if(!strncasecmp(mrl, "fifo:", 5)) { diff --git a/src/input/input_vcd.c b/src/input/input_vcd.c index 65cfbd9ac..d80b36088 100644 --- a/src/input/input_vcd.c +++ b/src/input/input_vcd.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_vcd.c,v 1.4 2001/05/07 01:31:44 f1rmb Exp $ + * $Id: input_vcd.c,v 1.5 2001/05/07 02:25:00 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -33,6 +33,7 @@ #include <sys/ioctl.h> #include <string.h> #if defined (__linux__) +#include <linux/config.h> /* Check for DEVFS */ #include <linux/cdrom.h> #elif defined (__FreeBSD__) #include <sys/cdio.h> @@ -48,7 +49,11 @@ static uint32_t xine_debug; /* for FreeBSD make a link to the right devnode, like /dev/acd0c */ +#ifdef CONFIG_DEVFS_FS +#define CDROM "/dev/cdroms/cdrom" +#else #define CDROM "/dev/cdrom" +#endif #define VCDSECTORSIZE 2324 typedef struct { @@ -673,7 +678,11 @@ static mrl_t **vcd_plugin_get_dir (input_plugin_t *this_gen, this->fd = open (CDROM, O_RDONLY); if (this->fd == -1) { +#ifdef CONFIG_DEVFS_FS + perror ("unable to open /dev/cdroms/cdrom"); +#else perror ("unable to open /dev/cdrom"); +#endi return NULL; } @@ -714,7 +723,11 @@ static char **vcd_plugin_get_autoplay_list (input_plugin_t *this_gen, this->fd = open (CDROM, O_RDONLY); if (this->fd == -1) { +#ifdef CONFIG_DEVFS_FS + perror ("unable to open /dev/cdroms/cdrom"); +#else perror ("unable to open /dev/cdrom"); +#endif return NULL; } |