View | Details | Raw Unified | Return to bug 8838
Collapse All | Expand All

(-)xine-lib-1.1.0/src/input/libdvdnav/remap.c.tmpdir (-2 / +2 lines)
Lines 189-197 Link Here
189
    remap_t *map;
189
    remap_t *map;
190
190
191
    /* Build the map filename */
191
    /* Build the map filename */
192
    home = getenv("HOME"); assert(home);
192
    home = getenv("TMPDIR"); assert(home);
193
    strncpy(fname, home, sizeof(fname));
193
    strncpy(fname, home, sizeof(fname));
194
    strncat(fname, "/.dvdnav/", sizeof(fname));
194
    strncat(fname, "/dvdnav/", sizeof(fname));
195
    strncat(fname, title, sizeof(fname));
195
    strncat(fname, title, sizeof(fname));
196
    strncat(fname, ".map", sizeof(fname));
196
    strncat(fname, ".map", sizeof(fname));
197
197
(-)xine-lib-1.1.0/src/input/input_dvd.c.tmpdir (-2 / +4 lines)
Lines 1789-1796 Link Here
1789
				   "playing scrambled DVDs."), 20, NULL, NULL);
1789
				   "playing scrambled DVDs."), 20, NULL, NULL);
1790
    xine_setenv("DVDCSS_METHOD", decrypt_modes[mode], 0);
1790
    xine_setenv("DVDCSS_METHOD", decrypt_modes[mode], 0);
1791
    
1791
    
1792
    css_cache_default = (char *)malloc(strlen(xine_get_homedir()) + 10);
1792
    char *xine_tmp_dir;
1793
    sprintf(css_cache_default, "%s/.dvdcss/", xine_get_homedir());
1793
    xine_tmp_dir = getenv("TMPDIR");
1794
    css_cache_default = (char *)malloc(strlen(xine_tmp_dir) + 10);
1795
    sprintf(css_cache_default, "%s/dvdcss/", xine_tmp_dir);
1794
    css_cache = config->register_string(config, "media.dvd.css_cache_path", css_cache_default,
1796
    css_cache = config->register_string(config, "media.dvd.css_cache_path", css_cache_default,
1795
					_("path to the title key cache"),
1797
					_("path to the title key cache"),
1796
					_("Since cracking the copy protection of scrambled DVDs can "
1798
					_("Since cracking the copy protection of scrambled DVDs can "

Return to bug 8838