diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2004-04-05 18:01:09 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2004-04-05 18:01:09 +0000 |
commit | 0ce5bafb71d11412b8f1b01af6a09acb0c2fa847 (patch) | |
tree | 22d3438f5151063d9eeacaf5e871440d3a5023a2 | |
parent | 4b62d4a577a66e5423c6e9c3bbb28336fb29c332 (diff) | |
download | xine-lib-0ce5bafb71d11412b8f1b01af6a09acb0c2fa847.tar.gz xine-lib-0ce5bafb71d11412b8f1b01af6a09acb0c2fa847.tar.bz2 |
- allow mounted DVDs to be played back on Linux 2.6, fix a free() on a static string in the VCD plugin
CVS patchset: 6330
CVS date: 2004/04/05 18:01:09
-rw-r--r-- | src/input/libdvdnav/dvd_input.c | 2 | ||||
-rw-r--r-- | src/input/libdvdnav/vm.c | 4 | ||||
-rw-r--r-- | src/input/vcd/xineplug_inp_vcd.c | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/input/libdvdnav/dvd_input.c b/src/input/libdvdnav/dvd_input.c index 47084016c..1e7775c73 100644 --- a/src/input/libdvdnav/dvd_input.c +++ b/src/input/libdvdnav/dvd_input.c @@ -170,7 +170,7 @@ static dvd_input_t file_open(const char *target) /* Open the device */ #ifndef WIN32 - dev->fd = open(target, O_RDONLY | O_EXCL); + dev->fd = open(target, O_RDONLY); #else dev->fd = open(target, O_RDONLY | O_BINARY); #endif diff --git a/src/input/libdvdnav/vm.c b/src/input/libdvdnav/vm.c index 223b8e85b..1ab8c8e1d 100644 --- a/src/input/libdvdnav/vm.c +++ b/src/input/libdvdnav/vm.c @@ -20,7 +20,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: vm.c,v 1.27 2004/03/16 11:43:38 mroi Exp $ + * $Id: vm.c,v 1.28 2004/04/05 18:01:09 hadess Exp $ * */ @@ -135,7 +135,7 @@ static void dvd_read_name(char *name, const char *device) { uint8_t data[DVD_VIDEO_LB_LEN]; /* Read DVD name */ - fd = open(device, O_RDONLY | O_EXCL); + fd = open(device, O_RDONLY); if (fd > 0) { off = lseek( fd, 32 * (off_t) DVD_VIDEO_LB_LEN, SEEK_SET ); if( off == ( 32 * (off_t) DVD_VIDEO_LB_LEN ) ) { diff --git a/src/input/vcd/xineplug_inp_vcd.c b/src/input/vcd/xineplug_inp_vcd.c index ab4984fd9..15780c29e 100644 --- a/src/input/vcd/xineplug_inp_vcd.c +++ b/src/input/vcd/xineplug_inp_vcd.c @@ -1,5 +1,5 @@ /* - $Id: xineplug_inp_vcd.c,v 1.14 2004/03/31 10:13:00 rockyb Exp $ + $Id: xineplug_inp_vcd.c,v 1.15 2004/04/05 18:01:09 hadess Exp $ Copyright (C) 2002, 2003, 2004 Rocky Bernstein <rocky@panix.com> @@ -1550,7 +1550,7 @@ vcd_class_get_instance (input_class_t *class_gen, xine_stream_t *stream, dbg_print(INPUT_DBG_CALL, "Called setting %s\n", entry->str_value); \ if ( NULL == entry->str_value ) return; \ \ - free(var); \ + if ( var ) free(var); \ var = strdup(entry->str_value); \ } @@ -1665,14 +1665,14 @@ _("What play unit to use when none is specified in an MRL, e.g. " class->vcd_device = - config->register_string(config, + strdup (config->register_string(config, "vcd.default_device", "", _("default CD drive used for VCD when none given"), _("What to use if no drive specified. If null, we'll scan for CD drives."), 20, vcd_default_dev_changed_cb, - (void *) class); + (void *) class)); my_vcd.player.slider_length = config->register_enum(config, |