mirror of https://github.com/mpv-player/mpv
10L don't add a base path to the urls
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6664 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4d996f3746
commit
4e7bb9dd22
|
@ -435,7 +435,7 @@ play_tree_add_basepath(play_tree_t* pt, char* bp) {
|
||||||
|
|
||||||
for(i = 0 ; pt->files[i] != NULL ; i++) {
|
for(i = 0 ; pt->files[i] != NULL ; i++) {
|
||||||
fl = strlen(pt->files[i]);
|
fl = strlen(pt->files[i]);
|
||||||
if(fl <= 0 || pt->files[i][0] == PATH_SEP)
|
if(fl <= 0 || pt->files[i][0] == PATH_SEP || strstr(pt->files[i],"://"))
|
||||||
continue;
|
continue;
|
||||||
pt->files[i] = (char*)realloc(pt->files[i],bl+fl+1);
|
pt->files[i] = (char*)realloc(pt->files[i],bl+fl+1);
|
||||||
memmove(pt->files[i] + bl,pt->files[i],fl+1);
|
memmove(pt->files[i] + bl,pt->files[i],fl+1);
|
||||||
|
|
Loading…
Reference in New Issue