diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-08-16 16:29:26 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-08-16 16:29:26 +0100 |
commit | d3e91bb09c694dc8a71b77f098ab251755763410 (patch) | |
tree | 1e2d82197a62813e8dd0b49e112e1b0f965fc5bd /src/input/input_dvd.c | |
parent | f43c0bf92a48824ed075473e9035d4c0dfe5cf33 (diff) | |
parent | 7047d9e5acf97c91a523c99ccc4b008a35a3e094 (diff) | |
download | xine-lib-d3e91bb09c694dc8a71b77f098ab251755763410.tar.gz xine-lib-d3e91bb09c694dc8a71b77f098ab251755763410.tar.bz2 |
Merge all but the open()/glibc workaround from 1.1.
Diffstat (limited to 'src/input/input_dvd.c')
-rw-r--r-- | src/input/input_dvd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index c55ff8726..4f1fc3fb2 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.c @@ -1482,14 +1482,14 @@ static int dvd_plugin_open (input_plugin_t *this_gen) { dvd_input_plugin_t *this = (dvd_input_plugin_t*)this_gen; dvd_input_class_t *class = (dvd_input_class_t*)this_gen->input_class; - char *locator; + char *locator, *locator_orig; char *title_part; xine_cfg_entry_t region_entry, lang_entry, cfg_entry; trace_print("Called\n"); /* we already checked the "dvd:/" MRL before */ - locator = strdup (this->mrl + (sizeof("dvd:") - 1)); + locator_orig = locator = strdup (this->mrl + (sizeof("dvd:") - 1)); /* FIXME: call a generic xine-lib MRL parser here to pre-parse * the MRL for ?title=<title>&part=<part> stuff and to expand @@ -1505,11 +1505,11 @@ static int dvd_plugin_open (input_plugin_t *this_gen) { _x_message(this->stream, XINE_MSG_READ_ERROR, /* FIXME: see FIXME in dvd_parse_try_open() */ (strlen(locator) && !(locator[0] == '/' && locator[1] == '\0')) ? locator : class->dvd_device, NULL); - free (locator); + free (locator_orig); return 0; } - free (locator); + free (locator_orig); dvdnav_get_title_string(this->dvdnav, &this->dvd_name); if(this->dvd_name) |