summaryrefslogtreecommitdiff
path: root/src/input/vcd/xineplug_inp_vcd.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2004-04-05 18:01:09 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2004-04-05 18:01:09 +0000
commit0ce5bafb71d11412b8f1b01af6a09acb0c2fa847 (patch)
tree22d3438f5151063d9eeacaf5e871440d3a5023a2 /src/input/vcd/xineplug_inp_vcd.c
parent4b62d4a577a66e5423c6e9c3bbb28336fb29c332 (diff)
downloadxine-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
Diffstat (limited to 'src/input/vcd/xineplug_inp_vcd.c')
-rw-r--r--src/input/vcd/xineplug_inp_vcd.c8
1 files changed, 4 insertions, 4 deletions
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,