comparison audacious/playlist.c @ 2019:d3a62e1075e2 trunk

[svn] Allow \ to / conversion to be switched on & off, by external contributor Chris Kehler <cbkehler@sympatico.ca>.
author chainsaw
date Wed, 29 Nov 2006 12:45:02 -0800
parents 5f19843a038b
children f15664434382
comparison
equal deleted inserted replaced
2018:58ea18909fe7 2019:d3a62e1075e2
1352 g_return_if_fail(filename_p != NULL); 1352 g_return_if_fail(filename_p != NULL);
1353 g_return_if_fail(playlist_name != NULL); 1353 g_return_if_fail(playlist_name != NULL);
1354 1354
1355 filename = g_strchug(g_strdup(filename_p)); 1355 filename = g_strchug(g_strdup(filename_p));
1356 1356
1357 if(cfg.convert_slash)
1357 while ((tmp = strchr(filename, '\\')) != NULL) 1358 while ((tmp = strchr(filename, '\\')) != NULL)
1358 *tmp = '/'; 1359 *tmp = '/';
1359 1360
1360 if (filename[0] != '/' && !strstr(filename, "://")) { 1361 if (filename[0] != '/' && !strstr(filename, "://")) {
1361 path = g_strdup(playlist_name); 1362 path = g_strdup(playlist_name);